lmb-freiburg / netdef_models

Repository for different network models related to flow/disparity (ECCV 18)
GNU General Public License v3.0
157 stars 32 forks source link

"python3 controller.py eval image0_path image1_path out_dir" wrong output #9

Open franciscorba opened 5 years ago

franciscorba commented 5 years ago

I'm running this:

python controller.py eval ../../../test/001.jpg ../../../test/002.jpg ../../../test/

And I get this:

ls ../../../test
001.jpg  002.jpg  'flow[0].fwd.flo'        'occ[0].fwd.float3'
001.png  002.png  'mb[0].fwd.float3'       'occ_soft[0].fwd.float3'
001.tif  002.tif  'mb_soft[0].fwd.float3'

I found really rare that files have apostrophes.

I tried your read code:

from netdef_slim.utils.io import read 
occ_file = '\\'flow[0].fwd.flo\\''
occ_data = read(occ_file) # returns a numpy array

import matplotlib.pyplot as plt
plt.imshow(occ_data[:,:,0])

And gets:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable