Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Help wanted !! KeyError: Caught KeyError in DataLoader worker process 0. #50

Open
AyeshaShafique opened this issue Dec 22, 2020 · 1 comment

Comments

@AyeshaShafique
Copy link

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'

@JerryZhu-1210
Copy link

Did you fix this, please? I got a similar error while using the Windows implementation, can you share your project?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants