-
Notifications
You must be signed in to change notification settings - Fork 107
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
Torch-HDF5 Failure during Writing Output by basset_motifs_predict.lua #40
Comments
Happy to help :D
Le mer. 29 août 2018 à 14:15, Dadi <[email protected]> a écrit :
Hi David,
I've made it work by reading Issue [#76] (google-deepmind/torch-hdf5#76
<google-deepmind/torch-hdf5#76>) from DeepMind. @Cadene
<https://github.com/Cadene> 's approach solved my problem. Thanks for
developing and maintaining the amazing tool Basset.
Best,
Dadi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEdvLsJvcVzTdWAIf_fBiNFadOjNa218ks5uVwRpgaJpZM4WR_nI>
.
--
Remi Cadene
PhD Student LIP6 - UPMC
Sorbonne Universities
http://remicadene.com
0033635504788
|
Great, yea the dependency on DeepMind's hdf5 library, which is no longer maintained, is unfortunate. All active development with this project is now happening in TensorFlow here: https://github.com/calico/basenji |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi David,
It seems
torch-hdf5
is not very compatible to Basset. Thebasset_motifs_predict.lua
fails to write output. I tested the script line by line insideth
interactive mode and encountered the failure atlocal hdf_out = hdf5.open(opt.out_file, 'w')
. Strangely, it didn't fail when read in the hdf5 file (the validation sequences) in the previous steps. The error message is as following:Actually I met the same error message in the training stage but worked around by reading Deepmind issue #81 and Basset issue #25. I made the following changes:
src
folder of Basset, I downloadedhttps://github.com/davek44/torch-hdf5.git
andluarocks make
the library inside thetorch-hdf5
folder.lua/5.1/hdf5/ffi.lua
by replacingif maj[0] ~= 1 or min[0] ~= 8 then
withif maj[0] ~= 1 or min[0] ~= 10 then
, to make it work with HDF5 version 1.10;lua/5.1/hdf5/file.lua
by addingfileID=tonumber(fileID)
inopenFunc
and have changedua/5.1/hdf5/group.lua
by replacing.. self._groupID ..
with.. tostring(self._groupID) ..
inHDF5Group:__tostring()
. These two changes overcome the error message for lackingfileID
at training stage.I've also tried to install the
hdf5-1.10
version, but then encountered the problem of 2-byte float incompatibility.I really appreciate if you can help me out in this case. Thanks a lot!
Best,
Dadi
The text was updated successfully, but these errors were encountered: