New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Training error at windows #126
Comments
It seems the problem is from the pytorch dataload. Make sure your pytorch is installed correctly, i.e., you can run other pytorch projects. For benchmark testing, you can disable the multi-thread dataloader by |
Thank you!
But, when I tried to run main.py Training as below.
EOFError was occurred. |
Same issue..is it any solution? |
|
Thank you! zzundark!
I have only one RTX2070 with 8GB memories. So, I change batch size and master batch to 11. I will try res_18. It needs short training time. |
Yes,the num_worker must be 0 , even it is 1, goes wrong |
@ @sounansu why the num_worker must be 0 |
I have it training in windows with num_workers > 0 Basically the error boils down to Can't pickle local object 'get_dataset..Dataset' From the python pickle docs: only classes that are defined at the top level of a module are picklable. The Dataset object is defined dynamically in src\lib\datasets\dataset_factory.py based on the options you pass in from the command line. def get_dataset(dataset, task):
class Dataset(dataset_factory[dataset], _sample_factory[task]):
pass
return Dataset What you will notice is that this class is defined in a function and not in the top level! So to fix this I made a small workaround: class MyDataset(dataset_factory['mydataset'], _sample_factory['ctdet']):
pass
def get_dataset(dataset, task):
if dataset == 'mydataset' and task == 'ctdet':
return MyDataset
class Dataset(dataset_factory[dataset], _sample_factory[task]):
pass
return Dataset Messy, but it works. |
please explain the procedure for centernet dataloader. |
I already can demo.py on my windows10 CP.
Next, I try to run benchmark evaluate on my PC.
But, below error was occurred.
Please, some one help me!
The text was updated successfully, but these errors were encountered: