Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: #25

Open
Sajid-Hussain14 opened this issue Feb 5, 2024 · 0 comments
Open

FileNotFoundError: [Errno 2] No such file or directory: #25

Sajid-Hussain14 opened this issue Feb 5, 2024 · 0 comments

Comments

@Sajid-Hussain14
Copy link

torch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:3550.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
==> Loading NuScenes dataset...

Loading NuScenes tables for version v1.0-mini...
23 category,
8 attribute,
4 visibility,
911 instance,
12 sensor,
120 calibrated_sensor,
31206 ego_pose,
8 log,
10 scene,
404 sample,
31206 sample_data,
18538 sample_annotation,
4 map,
Done loading in 0.476 seconds.

Reverse indexing ...
Done reverse indexing in 0.1 seconds.

=== Beginning epoch 1 of 100 ===
0%| | 0/125 [00:33<?, ?it/s]
Traceback (most recent call last):
File "\BEV\mono-semantic-maps-master\train.py", line 344, in
main()
File "\BEV\mono-semantic-maps-master\train.py", line 319, in main
train(train_loader, model, criterion, optimiser, summary, config, epoch)
File "\BEV\mono-semantic-maps-master\train.py", line 37, in train
for i, batch in enumerate(tqdm(dataloader)):
File "\Users\S\anaconda3\envs\torch\lib\site-packages\tqdm\std.py", line 1182, in iter
for obj in iterable:
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 631, in next
data = self._next_data()
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 1346, in _next_data
return self._process_data(data)
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 1372, in _process_data
data.reraise()
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch_utils.py", line 722, in reraise
raise exception
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch\utils\data_utils\worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "\Users\S\anaconda3\envs\torch\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "\BEV\mono-semantic-maps-master\src\data\augmentation.py", line 14, in getitem
image, calib, labels, mask = self.dataset[index]
File "\BEV\mono-semantic-maps-master\src\data\nuscenes\dataset.py", line 56, in getitem
image = self.load_image(token)
File "\BEV\mono-semantic-maps-master\src\data\nuscenes\dataset.py", line 66, in load_image
image = Image.open(self.nuscenes.get_sample_data_path(token))
File "\Users\S\anaconda3\envs\torch\lib\site-packages\PIL\Image.py", line 3247, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'C:\BEV\mono-semantic-maps-master\nuscenes\samples/CAM_BACK_LEFT/n015-2018-07-24-11-22-45+0800__CAM_BACK_LEFT__1532402938647423.jpg'

Please help me to resolve this issue, NOTE: I tried all the possible way to mention correct paths in config file , also when i try big dataset i am facing the memory error and when using the mini dataset i face this above mentioned error. kindly help me with this

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

No branches or pull requests

1 participant