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

解决运行extract_official_train_test_set_from_mat.py时only integer scalar arrays can be converted to a scalar index问题 #139

Open
Zannnn opened this issue Mar 14, 2023 · 3 comments

Comments

@Zannnn
Copy link

Zannnn commented Mar 14, 2023

将scenes = [u''.join(chr(c) for c in h5_file[obj_ref]) for obj_ref in h5_file['sceneTypes'][0]]改成scenes = [u''.join(chr(c[0]) for c in h5_file[obj_ref]) for obj_ref in h5_file['sceneTypes'][0]]

@fanrz
Copy link

fanrz commented Mar 18, 2023

English, plz

@WEIIEW97
Copy link

English, plz

He means when you run the script you probably encounter a problem that shows only integer scalar arrays can be converted to a scalar index. You can change the code from scenes = [u''.join(chr(c) for c in h5_file[obj_ref]) for obj_ref in h5_file['sceneTypes'][0]] to scenes = [u''.join(chr(c[0]) for c in h5_file[obj_ref]) for obj_ref in h5_file['sceneTypes'][0]](Maybe around line 87)

@prayerCCC
Copy link

谢谢兄弟!!!一个上午解决不了终于解决了

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

4 participants