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(front): Fix issues with loading segmentation models #124

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

cpvannier
Copy link
Member

Issue

Fixes #123

Description

  • Throw error in modelsApi if empty embeddings received to trigger the "No embeddings found for model" modal
  • Fix updating the currentModalOpen variable that would trigger the "No embeddings found for model" modal even after switching model
  • Add details to the "No embeddings found for view" modal that can trigger if clicking too quickly after selecting a model, because the embeddings have not yet finished loading

If loadEmbeddingsApi return an empty embeddings object without error, the noEmbeddings modal is not triggered
Without updating currentModalOpen in modelsStore, the noEmbeddings modal would wrongly trigger again after switching from a model with no embeddings to a model with embeddings
When clicking too quickly after selecting an interactive model, it is possible to trigger the viewEmbeddingModal because the embeddings have not finished loading yet.
@cpvannier cpvannier added enhancement New feature or request scope: front Related to Pixano frontend labels Feb 8, 2024
@cpvannier cpvannier added this to the Pixano 0.5.0 milestone Feb 8, 2024
@cpvannier cpvannier self-assigned this Feb 8, 2024
@cpvannier cpvannier merged commit 73b5eb8 into develop Feb 9, 2024
5 checks passed
cpvannier added a commit that referenced this pull request Feb 15, 2024
* fix(front): Throw error if empty embeddings to trigger modal

If loadEmbeddingsApi return an empty embeddings object without error, the noEmbeddings modal is not triggered

* fix(front): Fix updating current opened modal

Without updating currentModalOpen in modelsStore, the noEmbeddings modal would wrongly trigger again after switching from a model with no embeddings to a model with embeddings

* fix(front): Add warning that embeddings may have not finished loading

When clicking too quickly after selecting an interactive model, it is possible to trigger the viewEmbeddingModal because the embeddings have not finished loading yet.
@cpvannier cpvannier deleted the fix/loading_embeddings branch February 20, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope: front Related to Pixano frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix issues with loading segmentation models
3 participants