Skip to content

Conversation

@jeylau
Copy link
Contributor

@jeylau jeylau commented Jan 15, 2024

  • Test early whether superanimal name is a valid option
  • Test for the presence of model weight files rather than the only existence of a weight folder (so if the folder exists, but it does not contain any model snapshots, superanimal model weights will–as they should–be redownloaded, preventing the IndexError reported in other issues.)

Fixes #2469

@jeylau jeylau added the bug fix! fix for a real buggy one... label Jan 15, 2024
@AlexEMG
Copy link
Member

AlexEMG commented Jan 23, 2024

Add comment here: raise ValueError(f"{superanimal_name} not available. Available ones are: ", MODELOPTIONS)

IF you see the model you want, go to the website and see what is available/upldate dlclib

Copy link
Member

@AlexEMG AlexEMG left a comment

Choose a reason for hiding this comment

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

Update comment as outlined.

Copy link
Contributor

@n-poulsen n-poulsen left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@AlexEMG AlexEMG merged commit a1c8f44 into main Feb 8, 2024
@MMathisLab MMathisLab mentioned this pull request Feb 8, 2024
@MMathisLab MMathisLab deleted the jeylau/superanimal_download branch February 11, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix! fix for a real buggy one...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndexError: list index out of range

5 participants