I want to test the faceir, when i run "python inference_resshift.py -i /home/xielangren/project/ResShift/testdata/eval15/low --task faceir --scale 1",it got the error:
Traceback (most recent call last):
File "/home/xielangren/project/ResShift/inference_resshift.py", line 197, in <module>
main()
File "/home/xielangren/project/ResShift/inference_resshift.py", line 170, in main
resshift_sampler = ResShiftSampler(
File "/home/xielangren/project/ResShift/sampler.py", line 53, in __init__
self.setup_dist() # setup distributed training: self.num_gpus, self.rank
File "/home/xielangren/project/ResShift/sampler.py", line 72, in setup_dist
rank = int(os.environ['LOCAL_RANK'])
File "/home/xielangren/miniconda3/envs/resshift/lib/python3.10/os.py", line 680, in __getitem__
raise KeyError(key) from None
KeyError: 'LOCAL_RANK'
I want to test the faceir, when i run "python inference_resshift.py -i /home/xielangren/project/ResShift/testdata/eval15/low --task faceir --scale 1",it got the error: