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
Other
3.09k stars 682 forks source link

models not defined,how can i fix it #241

Open zzc-ai opened 2 years ago

zzc-ai commented 2 years ago

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

xiximelon commented 2 years ago

I use the method: in train.py

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