Image_Segmentation icon indicating copy to clipboard operation
Image_Segmentation copied to clipboard

saving checkpoints in "model.pth" format and visualizing the segmentation results

Open k-nayak opened this issue 4 years ago • 1 comments

Hello @LeeJunHyun , thank you for the amazing code. I want to use Attention Unet for real-time segmentation and see how well it works. I need weight files for using the model with a camera setup usually in ".pth" format so i can feed new images and see the segmentation results. Is there any way to save the checkpoint or is the ".pkl" something that can be used instead. Thanks in advance.

k-nayak avatar Sep 27 '21 06:09 k-nayak

The Pytorch offical tutorials may can help you https://pytorch.org/tutorials/beginner/basics/saveloadrun_tutorial.html, and you can just change the unet_path with '.pth'.

Lloyd-Pottiger avatar Nov 12 '21 16:11 Lloyd-Pottiger