neural-style-audio-torch icon indicating copy to clipboard operation
neural-style-audio-torch copied to clipboard

"unknown object" in function 'readObject' when loading the means data file

Open mz2 opened this issue 8 years ago • 5 comments
trafficstars

When attempting to use the texture synthesis example, I get the following error (line 424 is the code line that is loading the parameter means file):

/Users/mz2/torch/install/bin/luajit: /Users/mz2/torch/install/share/lua/5.1/torch/File.lua:375: unknown object
stack traceback:
	[C]: in function 'error'
	/Users/mz2/torch/install/share/lua/5.1/torch/File.lua:375: in function 'readObject'
	/Users/mz2/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
	neural_style_audio.lua:424: in function 'load_data'
	neural_style_audio.lua:81: in function 'main'
	neural_style_audio.lua:435: in main chunk
	[C]: in function 'dofile'
	.../mz2/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x010d4081c0

I'm executing this on macOS 10.11.6 – is the network perhaps serialised in some form not compatible with executing on macOS (64bit)? Any workarounds in mind?

mz2 avatar May 12 '17 15:05 mz2

Did you try to update everything? Or redownload the file, it can be corrupted. I don't know other reasons why it could happen..

DmitryUlyanov avatar May 14 '17 18:05 DmitryUlyanov

Yeah, all dependencies up to date, tried downloading again and hit the same. I saw some others complaining about a 32/64 bit difference at least in connection to this. I got the tensorflow version of this project to work but would still much prefer the torch version for my purposes :-(

Matias

On 14 May 2017, 19:00 +0100, Dmitry Ulyanov [email protected], wrote:

Did you try to update everything? Or redownload the file, it can be corrupted. I don't know other reasons it could happen.. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

mz2 avatar May 14 '17 22:05 mz2

Hmm, do you have 32 bit version ?

DmitryUlyanov avatar May 15 '17 11:05 DmitryUlyanov

Nope, a regular 64-bit Mac Pro running macOS 10.11.6.

mz2 avatar May 16 '17 14:05 mz2

Have no idea to be true..

DmitryUlyanov avatar May 18 '17 20:05 DmitryUlyanov