bernard24 / RIS

Implementation of the approach described in the paper "Recurrent Instance Segmentation" https://arxiv.org/abs/1511.08250.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why there exists error when loading images in plants_utils.create_instance?

brisker opened this issue · comments

commented

@bernard24

I have prepared the data (more than 20000 images including the source image and annotation image )and modified the path, and run launcher.sh , but got this error: (
/home/jcc/torch/install/bin/luajit: /home/jcc/torch/install/share/lua/5.1/image/: No such file or directory/img_10_10.png
stack traceback:
[C]: in function 'error'
/home/jcc/torch/install/share/lua/5.1/image/init.lua:352: in function 'load'
./plants_utils.lua:42: in function 'create_instance'
experiment.lua:243: in main chunk
[C]: in function 'dofile'
.../jcc/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
I have set the image data file path to '../Data/Train/' in experiment.lua , why Torch seems to ignore '../Data/Train' itself and report this bug?

And if I used absolute path, like '/home/jcc/code/RIS-master/Data/Train/', Torch seems to ignore '/home/jcc/cod' and the error is like this
/home/jcc/torch/install/bin/luajit: /home/jcc/torch/install/share/lua/5.1/image/: No such file or directorye/RIS-master/Data/Train/img_10_10.png
stack traceback:
[C]: in function 'error'
/home/jcc/torch/install/share/lua/5.1/image/init.lua:352: in function 'load'
./plants_utils.lua:42: in function 'create_instance'
experiment.lua:243: in main chunk
[C]: in function 'dofile'
.../jcc/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670

So weird !