Yang-Liu1082 / InvDN

Implementation for the paper: Invertible Denoising Network: A Light Solution for Real Noise Removal (CVPR2021).
Apache License 2.0
188 stars 35 forks source link

error in running the code #10

Closed llmpass closed 3 years ago

llmpass commented 3 years ago

Hi,

I got

NameError: name '_file_' is not defined when running through

opt['path']['root'] = osp.abspath(osp.join(_file_, osp.pardir, osp.pardir, osp.pardir))

at codes/options/options.py.

Any suggestions?

yours, Luming

0xvjay commented 3 years ago

try this might be helpfull

os.path.abspath(os.path.join(os.path.dirname(file), os.path.pardir))

llmpass commented 3 years ago

try this might be helpfull

os.path.abspath(os.path.join(os.path.dirname(file), os.path.pardir))

but this file is still not defined, right?

Yang-Liu1082 commented 3 years ago

'file' is the directory of the option.py file. How about trying these solutions? https://stackoverflow.com/questions/16771894/python-nameerror-global-name-file-is-not-defined

llmpass commented 3 years ago

'file' is the directory of the option.py file. How about trying these solutions? https://stackoverflow.com/questions/16771894/python-nameerror-global-name-file-is-not-defined

Thank you very much!