Comments (23)
Hi @pfdamasceno ,
@yiheng-wang-nv is updating all the examples and tutorials for 0.6 release: #246.
Thanks.
from tutorials.
Hi @sekh77 ,
Thanks for your bug report, this is compatible issue with latest MONAI code, I will fix it tomorrow.
Please install monai==0.3.0
as it's the stable version.
Thanks.
from tutorials.
Hi @yiheng-wang-nv ,
I am afraid maybe your previous mdification to not_nans
also breaks other tutorials, could you please help double confirm all the tutorials and examples which used DiceMetric
?
Fo these affected tutorials, you need to add the logic to install MONAI from the master code instead of the release version.
You can refer to the second cell of this tutorial:
https://github.com/Project-MONAI/tutorials/blob/master/2d_classification/mednist_tutorial.ipynb
Thanks.
from tutorials.
Hi @Nic-Ma -
This is the config report, and I see that I'm already on 0.3.0.
MONAI version: 0.3.0+29.g56dd27a
Python version: 3.7.7 (default, May 7 2020, 21:25:33) [GCC 7.3.0]
OS version: Linux (5.4.0-1031-azure)
Numpy version: 1.18.1
Pytorch version: 1.6.0
MONAI flags: HAS_EXT = True, USE_COMPILED = False
Optional dependencies:
Pytorch Ignite version: 0.4.2
Nibabel version: 3.2.0
scikit-image version: 0.16.2
Pillow version: 7.2.0
Tensorboard version: NOT INSTALLED or UNKNOWN VERSION.
gdown version: 3.11.0
TorchVision version: 0.8.1
ITK version: 5.1.1
tqdm version: 4.51.0
Thanks,
Sekhar H.
from tutorials.
Hi @sekh77 ,
This is not exact 0.3.0, please try to use pip install monai==0.3.0
.
Thanks.
from tutorials.
Ok, sure! Thank you.
Sekhar H.
from tutorials.
Hi @Nic-Ma -
I reinstalled MONAI to 0.3.0. But I still see exactly the same error after epoch 2. Here's my new config report:
MONAI version: 0.3.0
Python version: 3.7.7 (default, May 7 2020, 21:25:33) [GCC 7.3.0]
OS version: Linux (5.4.0-1031-azure)
Numpy version: 1.18.1
Pytorch version: 1.6.0
MONAI flags: HAS_EXT = False, USE_COMPILED = False
Optional dependencies:
Pytorch Ignite version: 0.4.2
Nibabel version: 3.2.0
scikit-image version: 0.16.2
Pillow version: 7.2.0
Tensorboard version: NOT INSTALLED or UNKNOWN VERSION.
gdown version: 3.11.0
TorchVision version: 0.8.1
ITK version: 5.1.1
tqdm version: 4.51.0
Thanks,
Sekhar H.
from tutorials.
Here's the error after reinstalling to 0.3.0:
epoch 2 average loss: 0.9216
ValueError Traceback (most recent call last)
in
49 val_outputs = post_trans(val_outputs)
50 # compute overall mean dice
---> 51 value, not_nans = dice_metric(y_pred=val_outputs, y=val_labels)
52 not_nans = not_nans.item()
53 metric_count += not_nans
ValueError: not enough values to unpack (expected 2, got 1)
Thanks,
Sekhar H.
from tutorials.
Hi @sekh77 ,
Sorry I didn't make it clear, you should also update this tutorial repo to use tag 0.3.0.
Thanks.
from tutorials.
How do I do that? I downloaded the file - brats_segmentation_3d.ipynb - locally into my VM, and running it using my Jupyter Notebook.
Thanks,
Sekhar H.
from tutorials.
Hi,
I'm using google colab and I tried to make the same training and evaluation with my own spleen dataset, but I've got the same problem after the 2nd epoch.
I reinstalled monai with the Version 0.3.0 but I still get this error after the 2nd epoch:
"ValueError: not enough values to unpack (expected 2, got 1)"
Is it already debugged or what should I wait?
Thanks
Aymen
from tutorials.
Hi @Nic-Ma -
Is this issue already fixed? Can I use the latest version?
Thanks,
Sekhar H.
from tutorials.
Hi @sekh77 ,
Yes, I think so, you can use either the latest MONAI and latest tutorial, or MONAI 0.3 and tutorial 0.3.
Thanks.
from tutorials.
Hi @sekh77,
did it work for you? I still have the same problem after installing MONAI 0.3 :/
Thanks,
Aymen
from tutorials.
Hi @sekh77,
did it work for you? I still have the same problem after installing MONAI 0.3 :/
Thanks,
Aymen
Hi, which tutorial version you used under MONAI 0.3? Could you please attach the error here? The MONAI version as well as the tutorial version should be consistent.
from tutorials.
here is the link:
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynb
thanks!
from tutorials.
here is the link:
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynbthanks!
I see, the code is the updated version that the dice metric will return two values. Please install the latest MONAI and run your notebook.
from tutorials.
Hi @yiheng-wang-nv
here is the link:
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynb
thanks!I see, the code is the updated version that the dice metric will return two values. Please install the latest MONAI and run your notebook.
I did it in the beginning of code with: %pip install monai==0.3.0
should l do it differently?
Thanks @yiheng-wang-nv
from tutorials.
here is the link:
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynbthanks!
Please use the commented line instead:
pip install git+https://github.com/Project-MONAI/MONAI#egg=MONAI
from tutorials.
Hi @yiheng-wang-nv
here is the link:
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynb
thanks!Please use the commented line instead:
pip install git+https://github.com/Project-MONAI/MONAI#egg=MONAI
I just did it, I still have the same issue :/
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynb
from tutorials.
Hi @yiheng-wang-nv
here is the link:
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynb
thanks!Please use the commented line instead:
pip install git+https://github.com/Project-MONAI/MONAI#egg=MONAI
I just did it, I still have the same issue :/
https://github.com/Meddebma/pyradiomics/blob/master/Spleen_dict.ipynb
According to the log in your link:
Requirement already satisfied: MONAI from git+https://github.com/Project-MONAI/MONAI#egg=MONAI in /usr/local/lib/python3.6/dist-packages (0.3.0)
Since your device already has MONAI 0.3.0, the latest version would not be installed.
Could you please uninstall MONAI 0.3.0 first, and then install the latest one?
from tutorials.
Hi @yiheng-wang-nv
It worked very well thank you :)
Only the plotting of the GIF did not work, should I change something to see the visual output?
Thanks!
from tutorials.
Hi, this seems to still be an issue for MONAI>=monai-0.6.0. Is that correct?
from tutorials.
Related Issues (20)
- RandCropByPosNegLabeld() can't support two labels
- Add Flower example
- FileNotFoundError in profiling_camelyon_pipeline.ipynb HOT 1
- Unrecognized arguments local-rank in multi-gpu train in self_supervised_pretraining
- unrecognized arguments `local-rank` in "brats_training_ddp.py"
- FileNotFoundError in "acceleration/TensorRT_inference_acceleration.ipynb"
- KeyError in "reconstruction/MRI_reconstruction/unet_demo/inference.ipynb"
- swin_unetr_btcv_segmentation_3d: pre trained model download link broken HOT 4
- Link for Installation of MONAI Generative Models gives 404 error
- AutoRunner demo needs to set auto_scale_allowed to False HOT 1
- Incorporating ONNX Support into Brain Tumor Segmentation Example HOT 1
- Getting cls_logits NaN of Inf during training HOT 1
- Decollate_batch() should be used with LoadImaged or LoadImage(image_only= "False") with dictionary_based input HOT 1
- module 'cv2.dnn' has no attribute 'DictValue'
- ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- Kernel hangs in "TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb" HOT 11
- nbclient.exceptions.DeadKernelError: Kernel died in ./modules/3d_image_transforms.ipynb HOT 7
- Issue with multi-GPU support in Auto3DSeg on Windows HOT 1
- the argument needed to change the default directory in pathology/tumor_detection/README.MD
- please upload more famous diffusion model about image to image,thanks 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 tutorials.