mrharicot / monodepth

Unsupervised single image depth prediction with CNNs
Other
2.21k stars 628 forks source link

Can't run test models on windows #223

Open spacewalkingninja opened 5 years ago

spacewalkingninja commented 5 years ago

Hello! I configured everything, as properly as I could imagine. Tensorflow keeps saying that: DataLossError (see above for traceback): Unable to open table file models\model_ cityscapes: Unknown: NewRandomAccessFile failed to Create/Open: models\model_cit yscapes : Access is denied. ; Input/output error [[node save/RestoreV2 (defined at monodepth_simple.py:66) ]]

Even though, I'm running my anaconda as an admin, on win7. It spits the same for model_kitti. I also tried with absolute paths, or relative paths.

The error is the same for all of the above situations, but here is what I tried last: (tensorflow) C:\monodepth>python monodepth_simple.py --image_path test.jpg --checkpoint_path models\model_cityscapes

Not sure what's the problem here :(

petitchamp commented 5 years ago

As far as I know , tensorflow 1.0 is not supported on windows. You might want to get a ubuntu 16 and CUDA 8 to run this code

or

it is due to linux path separator , check content of input file list in utils/filenames/

spacewalkingninja commented 5 years ago

offtopic WOW! Just got it running, amazed by this thing to be honest. Anyway I did as you suggested: Ubuntu 18.04 LTS But, even like this, it wouldn't work as it should I had to do the following command:

python monodepth_simple.py --image_path /home/spacewalkingninja/test.jpg --checkpoint_path /home/spacewalkingninja/monodepth/models/model_cityscapes/model_cityscapes.data-00000-of-00001 AND MAGIC!

Yannnnnnnnnnnn commented 2 years ago

Why is tf so hard to use?

I think this is why so many people turn to pytorch.