e4s2022 / e4s

(CVPR 2023) E4S: Fine-grained Face Swapping via Regional GAN Inversion
https://e4s2022.github.io
MIT License
366 stars 32 forks source link

AttributeError: 'Editor' object has no attribute 'opt' #16

Open chuan19 opened 1 year ago

chuan19 commented 1 year ago

(e4s) root@autodl-container-fe7811a13c-a73d6848:~/autodl-tmp/FinegrainedFace/e4s# python face_edit.py --source=./example/input/faceedit/source.jpg --reference=./example/input/faceedit/reference.jpg --region hair eyes --alpha=1 Traceback (most recent call last): File "face_edit.py", line 107, in editor = Editor(opts) File "face_edit.py", line 34, in init self.faceParsing_model = init_faceParsing_pretrained_model(self.opts.faceParser_name, self.opt.faceParsing_ckpt, self.opt.segnext_config) AttributeError: 'Editor' object has no attribute 'opt'

colt18 commented 1 year ago

Change opt to opts on line 34:

self.faceParsing_model = init_faceParsing_pretrained_model(self.opts.faceParser_name, self.opts.faceParsing_ckpt, self.opts.segnext_config)