-
Notifications
You must be signed in to change notification settings - Fork 22
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
Avoid downloading sample input and output for inference #451
Comments
if you want to circumvent these additional downloads you can use with ValidationContext(perform_io_checks=False):
model_descr = load_model_description("affable-shark") This will not download anything other than the rdf.yaml. |
Thanks! Trying it. |
Hi @FynnBe, I don't think I used your fix in my PlantSeg branch, but it seems that everything is still downloaded when GitHub Action runs the tests, e.g. the "Run Tests with PyTest" part. |
Could you explain what is the difference between: with ValidationContext(perform_io_checks=False): # method 1
model_descr = load_model_description("affable-shark") and model = load_model_description(model_id, perform_io_checks=False) # method 2 It seems that method 2 may work while method 1 doesn't. |
I confirm that method 1 and 2 have different results, according to the new CI run. |
oh sorry, yes using the context currently does not work for |
If I want to use
core
for inference, the model will be downloaded along with the sample input and output, which are unnecessary.The text was updated successfully, but these errors were encountered: