a-PyTorch-Tutorial-to-Object-Detection
a-PyTorch-Tutorial-to-Object-Detection copied to clipboard
ModuleNotFoundError: No module named 'datasets'
OS:Win10 ,64bit Python:3.6.6 Pytorch:1.0.1
I have created the PASCAL VOC 2007 and 2012 JSON file list. When I ran train.py, I got the errors below: ` 553433881it [19:06, 482647.72it/s]
Loaded base model.
C:\Applications\WPy-3661\python-3.6.6.amd64\lib\site-packages\torch\nn_reduction.py:49: UserWarning: size_average and reduce args will be deprecated, please use reduction='none' instead.
warnings.warn(warning.format(ret))
Traceback (most recent call last):
File "
I have a similar error, I run utils.py, create_data_lists.py, datasets.py, model.py then train.py in order, then during train.py something goes wrong when iterating over the dataloader. Here is my stack trace (parts of file paths removed for privacy):
runfile(a-PyTorch-Tutorial-to-Object-Detection-master/train.py', wdir='a-PyTorch-Tutorial-to-Object-Detection-master') Reloaded modules: utils
Loaded base model.
Traceback (most recent call last):
File "
File "Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile execfile(filename, namespace)
File "Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "a-PyTorch-Tutorial-to-Object-Detection-master/train.py", line 235, in
File "a-PyTorch-Tutorial-to-Object-Detection-master/train.py", line 102, in main epoch=epoch)
File "a-PyTorch-Tutorial-to-Object-Detection-master/train.py", line 143, in train for i, (images, boxes, labels, _) in enumerate(train_loader):
File "Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 193, in iter return _DataLoaderIter(self)
File "Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 469, in init w.start()
File "Anaconda3\lib\multiprocessing\process.py", line 112, in start self._popen = self._Popen(self)
File "Anaconda3\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj)
File "Anaconda3\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj)
File "Anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child)
File "Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe