You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception ignored in: <function _MultiProcessingDataLoaderIter.del at 0x7f6d5cf914c0>
......
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
Hi @fikry102, could you give me the command you used for training? It is a little difficult to tell what is going on without knowing which model you are training.
For what it is worth, I have not encountered this before and I can only give you a few pieces of advice on how to debug:
Is the model checkpointed at the last iterations? If yes, then you should be fine. If not, proceed to the next item.
Thanks for your detailed answer.
The error occured during training student representation using MiniImageNet as the source and ChestX as the target.
In spite of the error, the whole training process is a success.
My preliminary speculation is that the error may occur during pseudolabeling the dataset.
I will try to conduct more detailed debugging to solve my problem. Changing num_workers may be helpful.
BTW, I think the logic of "import configs" in 【miniImageNet_few_shot.py, EuroSAT_few_shot.py and so on】can be further improved. This is beacuse there is no configs.py in the folder dataset. ( in the folder student_STARTUP, teacher_miniImageNet). A possible solution for this chaos could be (just after a little bit of thought, maybe not so good):
1.replace import configs with configs=None in 【miniImageNet_few_shot.py, EuroSAT_few_shot.py and so on】
2.after import from datasets import miniImageNet_few_shot ... , add import configs and miniImageNet_few_shot .configs=configs in【student_STARTUP/STARTUP.py, teacher_miniImageNet/train.py and so on】
Activity
cpphoo commentedon Oct 7, 2022
Hi @fikry102, could you give me the command you used for training? It is a little difficult to tell what is going on without knowing which model you are training.
For what it is worth, I have not encountered this before and I can only give you a few pieces of advice on how to debug:
Hope this helps!
fikry102 commentedon Oct 7, 2022
Thanks for your detailed answer.
The error occured during training student representation using MiniImageNet as the source and ChestX as the target.
In spite of the error, the whole training process is a success.
My preliminary speculation is that the error may occur during pseudolabeling the dataset.
I will try to conduct more detailed debugging to solve my problem. Changing num_workers may be helpful.
BTW, I think the logic of "import configs" in 【miniImageNet_few_shot.py, EuroSAT_few_shot.py and so on】can be further improved. This is beacuse there is no configs.py in the folder dataset. ( in the folder student_STARTUP, teacher_miniImageNet). A possible solution for this chaos could be (just after a little bit of thought, maybe not so good):
1.replace
import configswithconfigs=Nonein 【miniImageNet_few_shot.py, EuroSAT_few_shot.py and so on】2.after import
from datasets import miniImageNet_few_shot ..., addimport configsandminiImageNet_few_shot .configs=configsin【student_STARTUP/STARTUP.py, teacher_miniImageNet/train.py and so on】