Views
No views yet
[8, 16, 24, 32, 48, 64], split_att="fc", bridge=Trueseed=42)lr=1e-3, weight_decay=1e-2T_max=50, eta_min=1e-51import torch
2from huggingface_hub import hf_hub_download
3from infer import load_model, predict_mask # infer.py from this repo
4from PIL import Image
5
6model = load_model("YOUR_USERNAME/malunet-cvc")
7mask = predict_mask(model, Image.open("polyp.png"))
8Image.fromarray(mask).save("mask.png")infer.py and models/malunet.py are bundled in this repo so you can
also clone it and run inference without the original training code.