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

'TypeError: 'Tensor' object is not iterable./Are my paths correct? #3

Open
bricksaver opened this issue Aug 28, 2020 · 0 comments
Open

Comments

@bricksaver
Copy link

bricksaver commented Aug 28, 2020

My name is Ben and I am a Masters student from UCSD. I am trying to use your UnDepthflow github code for my research thesis and am having some trouble running the code. I was wondering if you could help with trying to get the code running? I really appreciate it!

So far, I downloaded the raw KITTI data and the KITTI 2012/2015 training data. I am running on a Windows 10 computer with Python 3.6.8.

To run the code, I used the following command:
python main.py --data_dir=/Users/Benjamin Chang/Documents/X-Research/UnDepthflow/KITTI_Raw_Data/ --batch_size=4 --mode=depthflow --train_test=test --retrain=True --eval_pose=09,10 --pretrained_model=/Users/Benjamin Chang/Documents/X-Research/UnDepthflow/UnDepthflow-master/pretrained models/model-depth.data-00000-of-00001 --train_file=./filenames/kitti_train_files_png_4frames.txt --gt_2012_dir=/Users/Benjamin Chang/Documents/X-Research/UnDepthflow/KITTI_2012_Stereo_Flow_Data/ --gt_2015_dir=/Users/Benjamin Chang/Documents/X-Research/UnDepthflow/KITTI_2015_Stereo_Flow_Data/ --trace=/Users/Benjamin Chang/Documents/X-Research/UnDepthflow/store_models_and_logs/

... but am getting the following error no matter what I do:
"TypeError: 'Tensor' object is not iterable."

The main.py file is essentially getting stuck trying to create a 'model' object from the 'Model' class. One thing I'm unsure about is if my paths are correct. No matter how I change it, the code still runs and gives the same error, but I'm not sure. Could you let me know if my paths look correct?

Really appreciate your time. Thanks!

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