Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdf5/group.lua:88: attempt to concatenate 'int64_t' and 'string'hdf5/ #156

Open
agilebean opened this issue Apr 10, 2018 · 1 comment
Open

Comments

@agilebean
Copy link

agilebean commented Apr 10, 2018

Hi,
after training a model by

python scripts/make_style_dataset.py \```
  --train_dir ~/packs-fns/train \
  --val_dir ~/packs-fns/valid \
  --output_file dataset1.h5

I train the model by

th train.lua \
  -h5_file dataset1.h5 \
  -style_image ~/packs-fns/train/wisegeek.jpg \
  -style_image_size 384 \
  -content_weights 1.0 \
  -style_weights 5.0 \
  -checkpoint_name checkpoint \
  -gpu 0

This throws the following error message I am unable to understand:

/home/rstudio/torch/install/bin/luajit: /home/rstudio/torch/install/share/lua/5.1/hdf5/group.lua:88: attempt to concatenate 'int64_t' and 'string'
stack traceback:
	/home/rstudio/torch/install/share/lua/5.1/hdf5/group.lua:88: in function 'tostring'
	/home/rstudio/torch/install/share/lua/5.1/hdf5/group.lua:39: in function '__init'
	/home/rstudio/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/rstudio/torch/install/share/lua/5.1/torch/init.lua:87>
	[C]: in function 'HDF5Group'
	/home/rstudio/torch/install/share/lua/5.1/hdf5/init.lua:74: in function '_loadObject'
	/home/rstudio/torch/install/share/lua/5.1/hdf5/file.lua:19: in function '__init'
	/home/rstudio/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/rstudio/torch/install/share/lua/5.1/torch/init.lua:87>
	[C]: in function 'open'
	./fast_neural_style/DataLoader.lua:17: in function '__init'
	/home/rstudio/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/rstudio/torch/install/share/lua/5.1/torch/init.lua:87>
	[C]: in function 'DataLoader'
	train.lua:138: in function 'main'

I couldn't find any hint by googling so I'm getting desperate.
Any ideas or hints??

@adynathos
Copy link

Apply the following change to the hdf5 module:
adynathos/torch-hdf5@539fc15

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

No branches or pull requests

2 participants