Closed mslavescu closed 3 years ago
Can you try adding a ['inv_depths']
before the [0]
to see if that fixes the issue?
Thanks! That did the trick, it works now.
@mslavescu Hello there, did you receive this error while training, if yes then how did you solve it?
Traceback (most recent call last):
File "scripts/train.py", line 68, in
@porwalnaman01 my issue was during inferrence, see my steps above. @VitorGuizilini-TRI fixed it already, just pull latest code.
Your problem seems different, so it is better to open a separate issue.
Hi,
I tried to run in Docker the inference example, and I'm getting this error:
File "scripts/infer.py", line 87, in infer_and_save_depth pred_inv_depth = model_wrapper.depth(image)[0
Here are the commands to reproduce this behavior:
clone packnet-sfm Git repository
git clone https://github.com/TRI-ML/packnet-sfm
cd packnet-sfm
build Docker
make docker-build
enter bash in Docker
make docker-run COMMAND="bash"
inside Docker run these commands to bring the dataset and checkpoints files
mkdir /data/datasets
cd /data/datasets
curl -s https://tri-ml-public.s3.amazonaws.com/github/packnet-sfm/datasets/KITTI_tiny.tar | tar xv -C datasets
mkdir /data/checkpoints
cd /data/checkpoints/
wget https://tri-ml-public.s3.amazonaws.com/github/packnet-sfm/models/PackNetSAN01_HR_sup_K.ckpt
cd /workspace/packnet-sfm
mkdir out
run the infer.py with the downloaded checkpoint on the sample images from KITTI tiny dataset, and notice the error