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

how to run functions #3

Open
Palashio opened this issue Jul 30, 2020 · 3 comments
Open

how to run functions #3

Palashio opened this issue Jul 30, 2020 · 3 comments

Comments

@Palashio
Copy link

Palashio commented Jul 30, 2020

so i've got a set of 3D images (128, 128, 128) (both images and their appropriate masks). I want to run this implementation of UNet on it. How would I do this? They're .nii files so i've coded up my on dataset loader for it. I'm a bit confused on where to get started as there aren't enough reference resources.

@Palashio
Copy link
Author

I have it working so that this is what my training script looks like so far:

    for epoch in range(epochs):
        print(' - training - ')
        for i, (images, masks) in enumerate(train_loader):
            images = images.to(device)
            masks = masks.to(device)

where images, masks are both sizes (1, 1, 128, 128, 128) and train_loader looks like this:

train_loader = DataLoader(dataset=Dataset(partition['orig'], partition['segment']), 
                          batch_size = batch_size, shuffle = True)

where partition['orig] is the original image and partition['segment'] is the segmented image. the batch size is also 1.

@zyl200846
Copy link
Owner

zyl200846 commented Jul 31, 2020 via email

@NadiyaC249
Copy link

why i got a vary poor performance on the model ?(use the brats dataset to segment brain tumor)

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

3 participants