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
Possible Bugs, Loader.py not working? #4
Comments
I think the error is possibly how we are saving coco_features.npy Could you please post the version of read_tsv.py you use. We are using this: import base64 csv.field_size_limit(sys.maxsize) FIELDNAMES = ['image_id', 'image_w', 'image_h', 'num_boxes', 'boxes', 'features'] if name == 'main':
|
Issue Solved |
Hi @SinghJasdeep , even I am facing a similar problem. How did you resolve the issue? Could you share your version of read_tsv.py? That would be great. |
Hi, sorry I really should've put my read_tsv.py here it's like this ...
in_data = {}
...
for item in reader:
data = {}
data['image_id'] = int(item['image_id'])
for field in ['features']:
data[field] = np.frombuffer(base64.decodestring(item[field]),
dtype=np.float32).reshape((36, -1))
in_data[data['image_id']] = data['features']
np.save('purefeat.npy', in_data)
... |
@markdtw Thank you so much for the code :). |
Hello we are using you code to preprocess the data and build a few models on top of and are running into some bugs. Don't know why this is not working for us.
https://github.com/SinghJasdeep/CS230-CS224N-VQA
Mainly issues in the loader.py file:
i_batch.append(self.i_feat[iid]) is actually a dictionary not an array of size (36,2048)?
Your help would be greatly appreciated Mark.
The text was updated successfully, but these errors were encountered: