lllyasviel / ControlNet-v1-1-nightly

Nightly release of ControlNet 1.1
4.48k stars 364 forks source link

unable to load openpose #44

Closed luoxr18 closed 1 year ago

luoxr18 commented 1 year ago

i updated my controlnet yesterday and its very good to use, thank you! but everytime i select openpose(face/faceonly/full) in preprocessor it wont work, show "AttributeError: 'NoneType' object has no attribute 'model'" is that a bug or i operate incorrectlly?(other preprocessor works well, and three pth files were saved in "extensions\sd-webui-controlnet\annotator\downloads\openpose")

wang-sang commented 1 year ago

I also have this problem. Can you solve it?

bigcat26 commented 1 year ago

Have you tried restart webui? If that not works, try to add some debug code to inspect is the facenet initialized correctly

edit sd-webui-controlnet/annotator/openpose/__init__.py, line 204

        self.face_estimation = Face(face_modelpath)
        print(f'self.face_estimation={self.face_estimation}')