1 Star 0 Fork 0

mengfansheng16@163.com/Pytorch-UNet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
hubconf.py 563 Bytes
一键复制 编辑 原始数据 按行查看 历史
milesial 提交于 2021-08-19 11:14 . Update torchhub
import torch
from unet import UNet as _UNet
def unet_carvana(pretrained=False):
"""
UNet model trained on the Carvana dataset ( https://www.kaggle.com/c/carvana-image-masking-challenge/data ).
Set the scale to 0.5 (50%) when predicting.
"""
net = _UNet(n_channels=3, n_classes=2, bilinear=True)
if pretrained:
checkpoint = 'https://github.com/milesial/Pytorch-UNet/releases/download/v2.0/unet_carvana_scale0.5_epoch1.pth'
net.load_state_dict(torch.hub.load_state_dict_from_url(checkpoint, progress=True))
return net
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mengfansheng163/Pytorch-UNet.git
git@gitee.com:mengfansheng163/Pytorch-UNet.git
mengfansheng163
Pytorch-UNet
Pytorch-UNet
master

搜索帮助