Skip to content

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

@zefang

Description

@zefang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions