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

Unable to open object (object 'data' doesn't exist) #7

Open
HelenGuohx opened this issue Dec 5, 2020 · 1 comment
Open

Unable to open object (object 'data' doesn't exist) #7

HelenGuohx opened this issue Dec 5, 2020 · 1 comment

Comments

@HelenGuohx
Copy link

Hi I got this error. And I wonder how you preprocess your images

No protocol specified
=> no checkpoint found at '../out/attnet/feratt_attnet_ferattention_attloss_adam_ck_dim32_bbpreactresnet_fold0_000/models/model_best.pth.tar'
Traceback (most recent call last):
File "/home/haixuanguo/Documents/ferattention/train.py", line 296, in
main(params=args)
File "/home/haixuanguo/Documents/ferattention/train.py", line 154, in main
data = FactoryDataset.factory(
File "/home/haixuanguo/Documents/ferattention/torchlib/datasets/factory.py", line 176, in factory
data = fer.FERClassicDataset(pathname, 'ck', idenselect=idenselect, train=btrain )
File "/home/haixuanguo/Documents/ferattention/torchlib/datasets/fer.py", line 126, in init
self.data = np.array(f["data"])
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/usr/lib/python3/dist-packages/h5py/_hl/group.py", line 264, in getitem
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5o.pyx", line 190, in h5py.h5o.open
KeyError: "Unable to open object (object 'data' doesn't exist)"

@daaiwusheng
Copy link

Hi I got this error. And I wonder how you preprocess your images

No protocol specified
=> no checkpoint found at '../out/attnet/feratt_attnet_ferattention_attloss_adam_ck_dim32_bbpreactresnet_fold0_000/models/model_best.pth.tar'
Traceback (most recent call last):
File "/home/haixuanguo/Documents/ferattention/train.py", line 296, in
main(params=args)
File "/home/haixuanguo/Documents/ferattention/train.py", line 154, in main
data = FactoryDataset.factory(
File "/home/haixuanguo/Documents/ferattention/torchlib/datasets/factory.py", line 176, in factory
data = fer.FERClassicDataset(pathname, 'ck', idenselect=idenselect, train=btrain )
File "/home/haixuanguo/Documents/ferattention/torchlib/datasets/fer.py", line 126, in init
self.data = np.array(f["data"])
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/usr/lib/python3/dist-packages/h5py/_hl/group.py", line 264, in getitem
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5o.pyx", line 190, in h5py.h5o.open
KeyError: "Unable to open object (object 'data' doesn't exist)"

I got this bug too. Did you solve it?

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