HRNet / HRNet-Semantic-Segmentation

The OCR approach is rephrased as Segmentation Transformer: https://arxiv.org/abs/1909.11065. This is an official implementation of semantic segmentation for HRNet. https://arxiv.org/abs/1908.07919

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

models not defined,how can i fix it

zzc-ai opened this issue · comments

Traceback (most recent call last):
File "tools/test.py", line 144, in
main()
File "tools/test.py", line 67, in main
module = eval('models.'+config.MODEL.NAME)
File "", line 1, in
NameError: name 'models' is not defined

I use the method:
in train.py

from lib.models import seg_hrnet_ocr
model = eval(config.MODEL.NAME +
'.get_seg_model')(config)