pytorch-UNet icon indicating copy to clipboard operation
pytorch-UNet copied to clipboard

test_dice

Open 15793723081 opened this issue 3 years ago • 2 comments

After the prediction code is run, only the output image is obtained. How to use these outputs to obtain the dice coefficient? Did you calculate the dice coefficient of the prediction set?How do you calculate that?

15793723081 avatar Oct 15 '20 12:10 15793723081

I run predict.py file with my own configuration arguments, but it outputs error: NameEooor: name 'unet' is not defined. If I write "import unet', it also outputs error: model = Model(unet, checkpoint_folder=args.results_path, device=args.device) TypeError: init() missing 2 required positional arguments: 'loss' and 'optimizer'

fu123456 avatar Aug 08 '21 01:08 fu123456

Hi, I am getting the same error. Did you @fu123456 manage to solve this?

shanpriya3 avatar Oct 21 '21 11:10 shanpriya3