brjathu / deepcaps

Official Implementation of "DeepCaps: Going Deeper with Capsule Networks" paper (CVPR 2019).
MIT License
151 stars 48 forks source link

ensemble.py fails with: No such file or directory: 'deepcaps_1.npy' #11

Closed grische closed 4 years ago

grische commented 4 years ago

There seem to be some outdated code in ensemble.py which causes it to fail towards the end:

Traceback (most recent call last):
  File "ensemble.py", line 96, in <module>
    d1 = np.load("deepcaps_1.npy")
  File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 428, in load
    fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'deepcaps_1.npy'
brjathu commented 4 years ago

Hi, the path was not correct. Added the prefix to the npy file ("model/CIFAR10/deepcaps_1.npy"). Hope it should be ok now?

grische commented 4 years ago

@brjathu almost. I added a PR to fix the missing "d8" and "d9" which are not part of the pretrained sample set you provide :)

brjathu commented 4 years ago

Thank you very much. I will merge them.