SegNeXt/config/predict.yaml

12 lines
460 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

device: "cuda"
# -1表示从不加载任何权重就进行预测
# 0表示使用官方提供的权重进行预测
# 1表示使用自己的权重进行预测
mode: -1
checkpoint:
- pretrained # 目录
- segnext_tiny_512x512_ade_160k.pth # 文件名
# 利用正则表达式将官方model中的权重加载到模型, mode != 0时失效
regex_expr:
- ^(?!decoder\.cls_seg.*)$ # ?!表示对()内的内容取反详请见于model_utils.init_model