Google公開のソフトを使った、2D画像からデプスマップの作成 を見て実行してみたのですがエラーがでます
エラー位置: loader/image_folder.py@337 load_imgs()
TypeError: Caught TypeError in DataLoader worker process 0. Original Traceback (most recent call last): File "c:\python36-x64\lib\site-packages\torch\utils\data\_utils\worker.py", li ne 178, in _worker_loop data = fetcher.fetch(index) File "c:\python36-x64\lib\site-packages\torch\utils\data\_utils\fetch.py", lin e 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "c:\python36-x64\lib\site-packages\torch\utils\data\_utils\fetch.py", lin e 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "C:\2dtodepth\prog\loaders\image_folder.py", line 346, in __getitem__ img = self.load_imgs(self.list_path + h5_path) File "C:\2dtodepth\prog\loaders\image_folder.py", line 337, in load_imgs img = np.float32(img)/255.0 TypeError: float() argument must be a string or a number, not 'Image' |