Comments (6)
Notably, the error seems to be the same as in #342.
from research-contributions.
Thanks for giving the code a try @deepakri201!
The only thing that I can really give feedback based on the error you shared is to make sure that the notebook and the repository are in the right location...the notebook is originally designed to be executed right alongside the application folder, just as it is in the repository. I see that you changed the reference of the folder to an absolute path instead of the relative one...this shouldn't cause an error, but please verify location on your system is referenced properly. Otherwise try keeping as-is and executing alongside application code.
@fedorov I see the issue that you raised in #342 when trying to execute on Colab that is also similar. If you just run the notebook in Colab without cloning the full repository files, it will not be able to build the container.
from research-contributions.
Thanks for responding!
I was able to fix the above error (I had the wrong path name). Now I'm able to run the !monai-deploy package
successfully, and also run the load_and_visualize_dicom_image
.
However now I am running the following command !monai-deploy run lesion_seg_workflow_app:v1.0 {dcm_dir} output
and get the following error about the organ model not being found:
I've downloaded the models from the Google drive folder, and placed them in prostate_mri_lesion_seg_app/models
as the tutorial says. This is what my folder structure looks like:
I've also verified that the model.ts
file does in fact exist in the organ
folder.
Am I supposed to put the models in a different folder? Thanks!
Deepa
from research-contributions.
Hey @deepakri201 ...that is strange. I am not sure what would be causing this error. I tried some different version of MONAI (I was originally testing with 1.2.0, but 1.3.0 is now available) but I couldn't reproduce. I am using monai==1.3.0 and monai-deploy-app-sdk==0.5.1. Are these the versions you are using?
A way to verify directly would be to try to look inside the docker container with a command like:
docker run --rm -it --entrypoint=/bin/bash lesion_seg_workflow_app:v1.0
This will open a shell in the container and you could look in the /opt/monai/app/models folder and see if the right model is there. If not, then that is the issue and the container is not properly copying in the models during the build. I see nothing wrong with your folder structure or naming, but maybe something else. Please give this a try and let me know.
from research-contributions.
Hi @jtetrea,
I checked my version numbers and I'm also using monai==1.3.0
and monai-deploy-app-sdk==0.5.1
.
Interestingly, I re-ran everything (!monai-deploy package
and !monai-deploy run
), and now it seems to find the model just fine :) I was able to go through the notebook without any further issues.
Thank you for your help!
Deepa
from research-contributions.
That is great news! We appreciate your interest in this model. Please reach out if needed as you continue using it. Cheers!
from research-contributions.
Related Issues (20)
- Swin-UNETR pretraining model weights do not load into the model
- Validation
- One problem came when I was using SwinUNETR to train my own data HOT 5
- Invalid organ segmentation nii file produced from prostate_mri_lesion_seg_app
- SwinUNETR-V2
- About Test HOT 4
- about evaluation HOT 1
- About SwimUNETR Model Structure
- Unnecessary conv3 Layer Weights in DAE with MONAI v0.8.0 Leading to Compatibility Issues with v0.9.0+
- FileNotFoundError in swinunetr
- Swin-UNETR pretraining validation criterion
- AttributeError: 'NoneType' object has no attribute 'items' in Auto3dSeg
- Not reproducible results
- AttributeError: 'NoneType' object has no attribute 'items' in swinunetr algo
- Brats2020 HOT 3
- Evaluation
- difference brats2021 train test
- Unexpected key(s) in state_ dict: "epoch", "best_acc", "state_dict". HOT 3
- N foreground 0, N background 52003401,unable to generate class balanced samples. NaN or Inf found in input tensor.
- Understanding the contrastive loss implementation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from research-contributions.