Closed QZZZZZYF closed 1 year ago
The dataset i used is the raw dataset of NYUv2 and the format of the pictures in this dataset is ppm, pgm
I meet a problem when I train:
KeyError: ('color', -1, -1) Training model named: mdp Models and tensorboard events files are saved to: log Training is using: cuda Using split: nyu There are 21483 training items and 654 validation items
Training
Traceback (most recent call last):
File "/media/enb/d246805e-89c3-40bf-95da-9f0d81ea7b05/home/enb/ZYF/monodepth2nyu-master/train.py", line 18, in
Sorry for late reply. Did you solve the problem?
This problem has not been resolved yet, and I am still troubled by this error report.
it seems that the image data has not been read into the inputs
for ind, i in enumerate([0, -4, -3, -2, -1, 1, 2, 3, 4]):
if not i in set(self.frame_idxs):
continue
inputs[("color", i, -1)] = self.get_color(line[ind], do_flip)
if self.debug:
inputs[("color", i, -1)] = self.to_tensor(self.get_color(line[ind], do_flip))
i suggest that you could debug from this place to see why the data is not loaded.
There should be no bugs in this code. I am curious if your problem is solved. If you solve the problem please let me know.
Sorry for taking so long to reply, I haven't resolved the issue yet.
I cannot check this repo(sorry for that), since my experimental computer is at home, and I am working in another city. I will go home around August 26th, at that time I will check this code again and give more details about this code.
I update the repo today and fix the bug. It should be my fault, sorry. I test the code and the code run successfully. Please let me know if you run successfully to reproduce the result or if there is any problem, thank you.
Thank you. The code has been successfully run. I see that the ‘nyu_test/00001.h5’ in ‘splits/nyu_test’ is an H5 file. Could you share it with nyu_test file?
This was downloaded a long time ago, it should be in the evaluation section of this website https://github.com/svip-lab/Indoor-SfMLearner
Hello, I would like to inquire about the format of the NYUv2 dataset in this code.