ronghuaiyang / arcface-pytorch

1.74k stars 392 forks source link

import config, then config.Config didn't worked for me (and I saw iss… #98

Open egm108 opened 2 years ago

egm108 commented 2 years ago

…ues about this from others too).

As I saw in issues, people uses config.config(instead of config), but we could fix this in init.py file to allow user code(test.py, train.py) work.

before patch

import config config.Config().backbone Traceback (most recent call last): File "", line 1, in AttributeError: module 'config' has no attribute 'Config'

after patch

import config config.Config().backbone 'resnet18'