Closed zinuok closed 2 years ago
I think the axis must be '0', which corresponds to the RGB channels we want to split. If I change 'axis=-1' to 'axis=0', I can pass the above error, but following error occurs now:
File "/home/zinuok/mono_depth/calibrated-backprojection-network/src/datasets.py", line 275, in __getitem__
intrinsics = np.load(self.intrinsics_paths[index]).astype(np.float32)
File "/home/zinuok/.local/lib/python3.6/site-packages/numpy/lib/npyio.py", line 444, in load
raise ValueError("Cannot load file containing pickled data "
ValueError: Cannot load file containing pickled data when allow_pickle=False
However, the code doesn't use any 'pickle' file, which is weird..
Hi zinuok, it seems like something might be incorrect in your set up script.
When you ran the command for setting up were you doing so from the root of the repository?
calibrated-backprojection-network <----- run the commands while you are inside this folder here
|
|----- bash
|----- data
|----- void_release
|----- void_kbnet
|----- setup
|----- src
The dimension for the split function is correct. https://github.com/alexklwong/calibrated-backprojection-network/blob/master/setup/setup_dataset_void.py#L136 creates image triplets along the width dimension for (H x W x C), which is the last dimension in pytorch (C x H x W) format, and loads it here: https://github.com/alexklwong/calibrated-backprojection-network/blob/master/src/datasets.py#L44
Thank you very much for your kind reply.
You are right. The problem occurred because the file read in the code was not created properly due to a path problem. Now it works fine. Also, I hadn't thought of triplet.
I'll close the issue now that the issue has been resolved.
Thanks again :)
Great, happy to help :)
Thank you for releasing your nice code. I'm trying to test your pre-trained model in VOID-1500 dataset, so I followed the instructions step by step to configure the dataset.
However, when 'bash bash/void/run_kbnet_void1500.sh' is executed, the following error occurs: < major errors >
I think the last error is the main cause of my problem
caused from the following code:
I've printed the shape of the 'images' variable, but its size is (3, 480, 640)..
How can I solve this error? I've tried several changes like, changing N_THREADS from 8 to 1, but I couldn't fix this error