Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

setup.sh fails when converting to CoreML. #22

Open
teologov opened this issue Jan 15, 2018 · 5 comments
Open

setup.sh fails when converting to CoreML. #22

teologov opened this issue Jan 15, 2018 · 5 comments

Comments

@teologov
Copy link

Hi, I am trying to setup your project and setup.sh script fails with next error for every model:

Preparing models for conversion
/Users/teologov/torch/install/bin/lua: /Users/teologov/torch/install/share/lua/5.2/torch/File.lua:375: unknown object
stack traceback:
        [C]: in function 'error'
        /Users/teologov/torch/install/share/lua/5.2/torch/File.lua:375: in function 'readObject'
        /Users/teologov/torch/install/share/lua/5.2/torch/File.lua:409: in function 'load'
        prepare_model.lua:29: in function 'main'
        prepare_model.lua:46: in main chunk
        [C]: in function 'dofile'
        ...ogov/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: in ?

I tried manually to load the model with th> torch.load('./fast-neural-style/models/instance_norm/la_muse.t7').model and it still fails:

/Users/teologov/torch/install/share/lua/5.2/torch/File.lua:375: unknown object
stack traceback:
        /Users/teologov/torch/install/share/lua/5.2/trepl/init.lua:506: in function </Users/teologov/torch/install/share/lua/5.2/trepl/init.lua:499>
        [C]: in function 'error'
        /Users/teologov/torch/install/share/lua/5.2/torch/File.lua:375: in function 'readObject'
        /Users/teologov/torch/install/share/lua/5.2/torch/File.lua:409: in function 'load'
        [string "_RESULT={torch.load('./fast-neural-style/mode..."]:1: in main chunk
        [C]: in function 'xpcall'
        /Users/teologov/torch/install/share/lua/5.2/trepl/init.lua:661: in function 'repl'
        ...ogov/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
        [C]: in ?
@teologov
Copy link
Author

The issue is gone after I manually cloned the fast-neural-style one more time.

@leavesster
Copy link

leavesster commented Jan 17, 2018

I have the same issue. And also try th> torch.load('./fast-neural-style/models/instance_norm/la_muse.t7').model and still fails.

And cloned fast-neural-style seems not working for me.

I work dir is where the setup.sh in
I just run

cd ./example/fast-neural-style
sh setup.sh

@leavesster
Copy link

After manually download all models, It works perfect.
It seems curl just download a 301 Moved Permanently

@MrThiago
Copy link

@leavesster where and how to manually download the modes ?
thanks

@leavesster
Copy link

@MrThiago this repo will automatic
clone fast-neural-style the problem is fix in its pr pull144.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants