Skip to content

unet TypeError: function takes exactly 1 argument (3 given) #8

@tobimichigan

Description

@tobimichigan

Hi, I tried running your code but it hangs around the line below with `"unet TypeError: function takes exactly 1 argument (3 given)".
I have commented the section. Please kindly advise,

Training process

if TRAIN:
unet_model.train()
path = os.path.join('saved_models',MODEL_NAME) if SAVE_MODEL else None
unet_train_history = unet_classifier.train(EPOCHS,trainloader,mini_batch=100,save_best=path)
print(f'Training Finished after {EPOCHS} epoches')

Testing process on test data.

unet_model.eval()
unet_score = unet_classifier.test(testloader) #unet TypeError: function takes exactly 1 argument (3 given)
print(f'\n\nDice Score {unet_score}')

Dice Score 0.7446110107881675

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions