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

The usage of list and append are not right. #11

Open
zefang opened this issue Sep 2, 2019 · 0 comments
Open

The usage of list and append are not right. #11

zefang opened this issue Sep 2, 2019 · 0 comments

Comments

@zefang
Copy link

zefang commented Sep 2, 2019

image
These code snippets are in JointEmbedding\src \siamese_embedding\prepare_training.py.

When I debug them, the result is not what we except.
image
image

So I modified "model_id_to_image_ids = [[]]*shape_num" to "model_id_to_image_ids = [[] for i in range(shape_num)]". Then the result is right.
image

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