超高分辨率图像分割SegRefiner模型(ubuntu20.04)

参考链接

github链接

运行教程

他分两个任务:一个是HR高分辨率,一个是LR低分辨率,其中有些问题,希望大家一起讨论。

conda create -n segrefiner python=3.8
conda activate segrefiner
# torch
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
# mmcv and mmdet
pip install openmim
mim install "mmcv-full==1.7.1"
pip install -e .
# for boundary AP evaluation
git clone -b lvis_challenge_2021 https://github.com/lvis-dataset/lvis-api.git
cd lvis-api
pip install -e .
环境安装较为简单

怎么训练?怎么验证?先了解流程,没有相关教程
训练的数据集很大,但就是pic.jpg和mask.png对应关系,但是需要将mask转为粗掩码很费时间。
python tools/train.py configs/segrefiner/segrefiner_hr.py
缩放训练集dis10张,和thin_object18张,10G显存占用,90左右占用,3090。
结果:4250iter的iou最高0.7627然后马上归于0?
验证dis5k时,报错。FileNotFoundError: [Errno 2] No such file or directory: 'data/dis/coarse/isnet/DIS-TE1'
解决方案:https://github.com/MengyuWang826/SegRefiner/issues/5

python tools/test.py configs/segrefiner/segrefiner_dis.py work_dirs/segrefiner_hr/latest.pth --out_dir test_model_name
跑出来之后全黑图?

训练自己的两张图片?为啥还是10G?验证方式也很搞笑,怎么验证的?只有训练?但是效果0.8刚开始?最重要是测试,如何得到另一个模型对我的mask预测(为啥有这个操作)?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值