Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

deep learning - cannot open <resnet-18.t7> in mode r while trying to train SeGAN model

I am trying to implement the SeGAN paper with the repository here. I installed the prerequisite and tried to train the model with:

th main.lua -baseLR 1e-3 -end2end -istrain "train"

and I got this error:

WARNING: specified initialized model is ignored because resnet model will be loaded!    
/home/darya/distro/install/bin/luajit: cannot open <resnet-18.t7> in mode r  at /home/darya/distro/pkg/torch/lib/TH/THDiskFile.c:673
stack traceback:
    [C]: at 0x7f6f3df5e210
    [C]: in function 'DiskFile'
    /home/darya/distro/install/share/lua/5.1/torch/File.lua:405: in function 'load'
    /home/darya/SeGAN/networks/ModelTrainTestBatch.lua:285: in function 'LoadModel'
    main.lua:293: in main chunk
    [C]: in function 'dofile'
    ...rya/distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
    [C]: at 0x55fcae37f570

I'm not sure (since I'm not experinced) but I assume resnet is stopping another model to be loaded but it can't load due to some problem either. I've searched about it and couldn't find something helpful for my problem.

Any help will be much appreciated.

question from:https://stackoverflow.com/questions/65640732/cannot-open-resnet-18-t7-in-mode-r-while-trying-to-train-segan-model

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...