luanfujun/deep-photo-styletransfer

deepmatting_seg.lua:119: attempt to index a nil value

Closed this issue · 2 comments

loading matting laplacian...	gen_laplacian/Input_Laplacian_3x3_1e-7_CSR1.mat
File could not be opened: gen_laplacian/Input_Laplacian_3x3_1e-7_CSR1.mat
/home/my_user/torch/install/bin/luajit: deepmatting_seg.lua:119: attempt to index a nil value
stack traceback:
	deepmatting_seg.lua:119: in function 'main'
	deepmatting_seg.lua:606: in main chunk
	[C]: in function 'dofile'
	...ukin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x559aa4f07570

File is not empty:

du -sh ./gen_laplacian/Input_Laplacian_3x3_1e-7_CSR1.mat
248M    ./gen_laplacian/Input_Laplacian_3x3_1e-7_CSR1.mat

Created by Octave 4.2.2:

cat ./gen_laplacian/Input_Laplacian_3x3_1e-7_CSR1.mat | head
# Created by Octave 4.2.2, Mon Nov 04 21:52:17 2019 UTC <username@servername>
# name: CSR
# type: matrix
# rows: 7613426
# columns: 3
 1 1 0.7222824088134236
 1 2 -0.2777175911865765
 1 3 -0.2777175911865765
 1 438 -0.1111111111111111
 1 439 -0.1111111111111111