Coder Social home page Coder Social logo

creatis-myriad / ascent Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 3.0 535 KB

cardiAc ultrasound Segmentation & Color-dopplEr dealiasiNg Toolbox (ASCENT)

License: Apache License 2.0

Shell 0.04% Makefile 0.15% Python 97.10% Jupyter Notebook 2.71%
deep-learning nnunet segmentation hydra monai pytorch-lightning ultrasound-imaging

ascent's People

Contributors

dependabot[bot] avatar hangjung97 avatar nathanpainchaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ascent's Issues

I meet an error when run preprocessing.

Dear author, thanks for your excellent work! When I run ascent_preprocess_and_plan dataset=CAMUS_challenge, an error occurs below. The cropped data folder can be produced, but the data folder data_and_propertites under preprocessed data folder is empty. I use your code camus.py to generate the raw data folder nnUNet format dataset. Thanks for your help previously.
1703234711734

Size mismatch when running inference and evaluation on camus_challenge_2d model

I have trained the model with processed ASCENT dataset, with the command ascent_train experiment=camus_challenge_2d logger=tensorboard.

However when I try to perform evaluation and run inference, there is a problem of size mismatch.
size mismatch for net.upsamples.3.transp_conv.weight: copying a param with shape torch.Size([480, 480, 2, 2]) from checkpoint, the shape in current model is torch.Size([480, 256, 2, 2]). size mismatch for net.upsamples.3.conv_block.conv1.conv.weight: copying a param with shape torch.Size([480, 960, 3, 3]) from checkpoint, the shape in current model is torch.Size([256, 512, 3, 3]). size mismatch for net.upsamples.3.conv_block.conv1.conv.bias: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([256]). size mismatch for net.upsamples.3.conv_block.conv2.conv.weight: copying a param with shape torch.Size([480, 480, 3, 3]) from checkpoint, the shape in current model is torch.Size([256, 256, 3, 3]). size mismatch for net.upsamples.3.conv_block.conv2.conv.bias: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([256]). size mismatch for net.upsamples.4.transp_conv.weight: copying a param with shape torch.Size([480, 256, 2, 2]) from checkpoint, the shape in current model is torch.Size([256, 128, 2, 2]). size mismatch for net.upsamples.4.conv_block.conv1.conv.weight: copying a param with shape torch.Size([256, 512, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 256, 3, 3]). size mismatch for net.upsamples.4.conv_block.conv1.conv.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([128]). size mismatch for net.upsamples.6.conv_block.conv2.conv.weight: copying a param with shape torch.Size([64, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([32, 32, 3, 3]).

I have already specify in my run inference command and predict.yaml that the model is camus_challenge_2d. I wonder how to make the shape of the current model to be 64,128,256,480?

Problem in resample_image when running inference

Thank you so much for sharing the code! I am trying to run the model on my own data but encountered some problems.
I have the .nii.gz file shown below, that was transformed from a png file, cropped, rotated, and has the shape of (670, 490, 1).
Figure_1
Patient_Frame028_0000.nii.gz
Original png image: Patient_Frame028.png

When I feed it into the camus_challenge_2d model to run inference, there is problem in resampling the image. My image's is tagged as anisotropic so separate z resampling is used.
The shape[axis] = 1 and new_shape[axis] = 0, so the the line if not shape[axis] == new_shape[axis]: is true and resize is run. However, after running this resize function on line 107 in preprocessing.py, the resized image array becomes completely empty.
May I know how can I further process the data before feeding it into the model?

Reproduce results from CAMUS leaderboard

Hey, thanks for sharing this repository. I was wondering: how do I reproduce your results from the leaderboard of CAMUS?

Which commands do I have to run? Is it simply:

ascent_train experiment=camus_2d logger=tensorboard

as outlined in the readme file?

EDIT: some afterthoughts

Do I leave the image dimensions, and pixel aspect ratios as is, when converting the CAMUS data to the desired format?

Also, is this implementation any different from the original nnUnet? As in, can I expect different results if I train on the same data with the original nnUnet implementation?

How to specify GPU for model training?

How can I specify a specific GPU among multiple GPUs to train the model? There is no relevant description in the documentation. Looking forward to your reply!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.