MVDNet icon indicating copy to clipboard operation
MVDNet copied to clipboard

No such file or directory: 'data/RobotCar/object/radar/1547122770869274.jpg'

Open cxy-ccc opened this issue 2 years ago • 6 comments

[04/29 15:24:10 d2.engine.hooks]: Total training time: 0:00:00 (0:00:00 on hooks) Traceback (most recent call last): File "/home/data/cxy/MVDNet-main/MVDNet/tools/train.py", line 58, in args=(args,), File "/home/data/cxy/MVDNet-main/detectron2/detectron2/engine/launch.py", line 52, in launch main_func(*args) File "/home/data/cxy/MVDNet-main/MVDNet/tools/train.py", line 47, in main return trainer.train() File "/home/data/cxy/MVDNet-main/detectron2/detectron2/engine/defaults.py", line 380, in train super().train(self.start_iter, self.max_iter) File "/home/data/cxy/MVDNet-main/detectron2/detectron2/engine/train_loop.py", line 132, in train self.run_step() File "/home/data/cxy/MVDNet-main/detectron2/detectron2/engine/train_loop.py", line 209, in run_step data = next(self._data_loader_iter) File "/home/data/cxy/MVDNet-main/detectron2/detectron2/data/common.py", line 140, in iter for d in self.dataset: File "/home/cxy/anaconda3/envs/MVDNet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in next data = self._next_data() File "/home/cxy/anaconda3/envs/MVDNet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/cxy/anaconda3/envs/MVDNet/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/cxy/anaconda3/envs/MVDNet/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/data/cxy/MVDNet-main/detectron2/detectron2/data/common.py", line 41, in getitem data = self._map_func(self._dataset[cur_idx]) File "/home/data/cxy/MVDNet-main/detectron2/detectron2/utils/serialize.py", line 23, in call return self._obj(*args, **kwargs) File "/home/data/cxy/MVDNet-main/MVDNet/mvdnet/data/robotcar_mapper.py", line 47, in call radar_intensity = utils.read_image(radar_intensity_name, format='L') File "/home/data/cxy/MVDNet-main/detectron2/detectron2/data/detection_utils.py", line 49, in read_image with PathManager.open(file_name, "rb") as f: File "/home/cxy/anaconda3/envs/MVDNet/lib/python3.7/site-packages/iopath/common/file_io.py", line 1012, in open bret = handler._open(path, mode, buffering=buffering, **kwargs) # type: ignore File "/home/cxy/anaconda3/envs/MVDNet/lib/python3.7/site-packages/iopath/common/file_io.py", line 612, in _open opener=opener, FileNotFoundError: [Errno 2] No such file or directory: 'data/RobotCar/object/radar/1547122770869274.jpg' But under the path, the image is already exist.I tried to add a print in front of the line 47 in detection_utils.py, but it can print the right path.

cxy-ccc avatar Apr 29 '22 08:04 cxy-ccc

Each time the error occurs, the wrong file is not the same.

cxy-ccc avatar Apr 29 '22 08:04 cxy-ccc

I have the same issue when trying to train the sample_medium file

HBDHBB avatar Jun 21 '22 07:06 HBDHBB

I am having the same issue. I am eagerly waiting to find the solution to this problem.

nujhat-tabassum avatar Apr 01 '23 04:04 nujhat-tabassum

@nujhat-tabassum @nililili7876 @HBDHBB @cxy-ccc I'm faced with the same issue, did anyone find the solution??

alirezanjf avatar Jun 20 '23 16:06 alirezanjf

SOLVED: you need to update the data_root in the robotcar_mapper python file to your file path.

neoskye24 avatar Jan 13 '24 22:01 neoskye24