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

ValueError: cannot reshape array of size 117848348 into shape (6750,10,2048) #80

Open
rabaig opened this issue Sep 1, 2022 · 0 comments

Comments

@rabaig
Copy link

rabaig commented Sep 1, 2022

Hello,

Really appreciate your work.. I started using this repo. I made a setup and started python main.py.

I ran into error regarding shapes

Could you please help me on that.

fc1.weight
fc1.bias
fc2.weight
fc2.bias
fc3.weight
fc3.bias
Traceback (most recent call last):
File "main.py", line 46, in
auc = test(test_loader, model, args, viz, device)
File "/media/jungyoonkim/D/RTFM-main/test_10crop.py", line 11, in test
for i, input in enumerate(dataloader):
File "/home/jungyoonkim/anaconda3/envs/wsal/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 346, in next
data = self.dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/jungyoonkim/anaconda3/envs/wsal/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/jungyoonkim/anaconda3/envs/wsal/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/media/jungyoonkim/D/RTFM-main/dataset.py", line 58, in getitem
features = np.load(self.list[index].strip('\n'), allow_pickle=True)
File "/home/jungyoonkim/anaconda3/envs/wsal/lib/python3.7/site-packages/numpy/lib/npyio.py", line 441, in load
pickle_kwargs=pickle_kwargs)
File "/home/jungyoonkim/anaconda3/envs/wsal/lib/python3.7/site-packages/numpy/lib/format.py", line 787, in read_array
array.shape = shape
ValueError: cannot reshape array of size 117848348 into shape (6750,10,2048)

Thanks

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

1 participant