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

fix(embeddings): save embeddings params on compute #173

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jan 16, 2025

and use saved params when ploting new transformed images.

Also, cache transformed images to re-plot then when embedding params are changed.

Closes #170
Closes #171

self.transformed_images.update(dataset_id_to_image)
self.emit_update()

@change("dataset_ids")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making a note, but don't change it in thie PR: I noticed that we have been using dataset_ids to store a list of image ids. I think we should change the name to make the intent less confusing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open to naming ideas. The totaly in my head convention was "dataset id"s mapped to a key in the COCO json, and "image ids" were keys for the original/transformed image on the state.
https://github.com/Kitware/nrtk-explorer/blob/main/src/nrtk_explorer/app/images/image_ids.py#L26-L29

Base automatically changed from sort-fix to main January 21, 2025 19:50
and use saved params when ploting new transformed images.

Also, cache transformed images to re-plot then when
embedding params are changed.

Closes #170
Closes #171
@PaulHax PaulHax merged commit 5f0dfec into main Jan 21, 2025
12 checks passed
@PaulHax PaulHax deleted the embedding-fix branch January 21, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants