Skip to content
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

Got error with 3D CNN #173

Open
zhonhel opened this issue Jun 17, 2021 · 0 comments
Open

Got error with 3D CNN #173

zhonhel opened this issue Jun 17, 2021 · 0 comments

Comments

@zhonhel
Copy link

zhonhel commented Jun 17, 2021

I got error, when using 3D U-Net, please clone this repo to check: https://github.com/wolny/pytorch-3dunet

I use pytorch 1.9.0

Look at this repo
First, change the file_paths item in ./resources/train_config_dice.yaml, with "{path to}/resources/sample_ovule.h5", both for train and val ( line 82 and line 139 )
Then, run use python {path to}/pytorch3dunet/train.py --config {path to}/resources/train_config_dice.yaml

I inserted codes:

    from torchsummary import summary
    summary(self.model, (input.shape[1], input.shape[2], input.shape[3], input.shape[4]))
    exit()

before

    output = self.model(input)

in UNet3DTrainer._forward_pass(self, input, target, weight=None) this function

@zhonhel zhonhel changed the title Got error with 3D CNN. Got error with 3D CNN Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant