You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work the save operation under torch environment, not Pytorch.etc. I convert the caption data to .h5 files and then save them by using lua. The key statements are h5fi = hdf5.open(h5_path, "r")
text_tensor = h5fi:read("char"):all()
img_tensor = h5fi:read("txt"):all()
obj = {char=text_tensor, img=img_path, txt=img_tensor}
torch.save(target_path, obj)
No description provided.
The text was updated successfully, but these errors were encountered: