-
Couldn't load subscription status.
- Fork 118
Help wanted !! KeyError: Caught KeyError in DataLoader worker process 0. #50
Description
im facing this error when running the test. Kindly help me
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Khizer\anaconda3\lib\site-packages\torch\utils\data_utils\worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "C:\Users\Khizer\anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\Khizer\anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Ayesha\Upwork\Projects\FCGAN Clothing style transfer\swapnet\SwapNet-master\SwapNet-master\datasets\texture_d
ataset.py", line 118, in getitem
rois = np.rint(self.rois_df.loc[file_id].values * scale)
File "C:\Users\Khizer\anaconda3\lib\site-packages\pandas\core\indexing.py", line 1767, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "C:\Users\Khizer\anaconda3\lib\site-packages\pandas\core\indexing.py", line 1964, in _getitem_axis
return self._get_label(key, axis=axis)
File "C:\Users\Khizer\anaconda3\lib\site-packages\pandas\core\indexing.py", line 624, in _get_label
return self.obj._xs(label, axis=axis)
File "C:\Users\Khizer\anaconda3\lib\site-packages\pandas\core\generic.py", line 3537, in xs
loc = self.index.get_loc(key)
File "C:\Users\Khizer\anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 2648, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas_libs\index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 133, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 157, in pandas._libs.index.IndexEngine._get_loc_duplicates
KeyError: 'data\deep_fashion\deep_fashion_all\texture\WOMEN\Blouses_Shirts\id_00000001\02_1_front'