Skip to content
Snippets Groups Projects
Unverified Commit 5d27504a authored by Mashiro's avatar Mashiro Committed by GitHub
Browse files

[Fix]: fix deep copy data list item (#471)

parent 8770c6c7
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ class BaseDataset(Dataset):
self.data_bytes[start_addr:end_addr]) # type: ignore
data_info = pickle.loads(bytes) # type: ignore
else:
data_info = self.data_list[idx]
data_info = copy.deepcopy(self.data_list[idx])
# Some codebase needs `sample_idx` of data information. Here we convert
# the idx to a positive number and save it in data information.
if idx >= 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment