-
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
Is there a build model_creation example? #445
Comments
Hi, thanks for reporting the broken link! I updated the example links in the bioimageio.core docs here and created bioimage-io/bioimage.io#439 to start updating our central docs. The model_creation notebook was revised and republished as model_usage.ipynb (as now listed under the examples) That notebook starts off with loading an existing resource from the zoo to get you started faster. |
Hi, sorry to butt in here, but I'm also attempting to create a Bioimage.io model from a pytorch model and I honestly had no idea where to start before I saw the presentation you've linked. So just to confirm if I'm reading your presentation correctly - do I need 1) the model source code to load in the model architecture (via Thanks in advance! |
Hi @mattaq31 , thank you for your question! We encourage contributors to provide as many as possible, however a single weights format is the minimum. When possible its great to convert pytorch state dicht weights (which require executing the source code for the architecture as I'm sure you're familiar with) to torchscript (which does not require the original source code and specific Python environment making it far easier to deploy). |
Hi @FynnBe thanks for getting back to me so quickly during the holiday period! Also thanks for clarifying the different options available when choosing which weights to upload. Eventually, I managed to assemble a bioimage.io model for my torchscript weights and proceeded to run the validation script which ran with no errors. For more info, I am preparing a U-Net segmentation model which was trained within PyTorch that accepts single channel images and outputs dual channel images of the same size. However, I have a couple more questions (apologies in advance for this large dump of text!):
In general, the documentation available for preparing a new BioImage.IO model from scratch seems to be very terse, I had to guess many of the arguments to the Thanks again for your help and apologies once again for the large wall of text but I wasn't sure where to reach out otherwise! |
Hi again @FynnBe, to quickly update, I've managed to validate the model works in DeepImageJ (although that also has its own share of bugs and issues). I'm about to upload the model to BioImage.IO but I am unable to login to the uploader form system (https://bioimageio-uploader.netlify.app/). When I try going ahead and uploading anyway, I'm getting various errors such as:
Would you be able to let me know if there are any workarounds for this issue? Thanks! |
Previously, there was a model_creation example notebook. It is also referenced in the Bioimagezoo developers guide as being here.
If not, is there another such example of how to create a model from torch?
The text was updated successfully, but these errors were encountered: