GithubHelp home page GithubHelp logo

Comments (6)

islandLZ avatar islandLZ commented on June 15, 2024 1

Hi @islandLZ. The problem seems to be the last version of the architecture was strictly designed to be 3d while your inputs are 2d. I've just committed a version of the architecture with a 'dim' argument with '2d' or '3d' inputs. Give that a try and see if it works for you.

Thank you for your work. I will try the 'dim' you just set up now。

from mednext.

islandLZ avatar islandLZ commented on June 15, 2024 1

I success

Hi @islandLZ. The problem seems to be the last version of the architecture was strictly designed to be 3d while your inputs are 2d. I've just committed a version of the architecture with a 'dim' argument with '2d' or '3d' inputs. Give that a try and see if it works for you.

Your work has been successful.
image
image

from mednext.

islandLZ avatar islandLZ commented on June 15, 2024

When I change n_channels = 3 , I meet an other erro!

from mednext.

saikat-roy avatar saikat-roy commented on June 15, 2024

Hi @islandLZ. The problem seems to be the last version of the architecture was strictly designed to be 3d while your inputs are 2d. I've just committed a version of the architecture with a 'dim' argument with '2d' or '3d' inputs. Give that a try and see if it works for you.

from mednext.

islandLZ avatar islandLZ commented on June 15, 2024

I set this:

class MedNeXt(nn.Module):

def __init__(self, 
    in_channels: int = 3, 
    n_channels: int = 32,
    n_classes: int = 3, 
    exp_r: list = [3,4,8,8,8,8,8,4,3],         # Expansion ratio as in Swin Transformers
    kernel_size: int = 5,                      # Ofcourse can test kernel_size
    enc_kernel_size: int = None,
    dec_kernel_size: int = None,
    deep_supervision: bool = False,             # Can be used to test deep supervision
    do_res: bool = True,                       # Can be used to individually test residual connection
    do_res_up_down: bool = True,             # Additional 'res' connection on up and down convs
    checkpoint_style: str = 'outside_block',  # Either inside block or outside block
    block_counts: list = [3,4,8,8,8,8,8,4,3], # Can be used to test staging ratio:# [3,3,9,3] in Swin as opposed to [2,2,2,2,2] in nnUNet
    norm_type = 'group',
):

.......
then I have made modifications to my data format:
[1,3,512,512] -> [1,3,64,64,64]

So that the network can operate normally.

But I am still testing whether this method is feasible。

from mednext.

saikat-roy avatar saikat-roy commented on June 15, 2024

I'm glad to hear that it helped!

from mednext.

Related Issues (9)

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.