djbielejeski / a-person-mask-generator

Extension for Automatic1111 and ComfyUI to automatically create masks for Background/Hair/Body/Face/Clothes in Img2Img
MIT License
264 stars 34 forks source link

Error in Colab #12

Closed Alek2345 closed 10 months ago

Alek2345 commented 10 months ago

The Img tab does not show the picture. When I try to generate it, it gives an error. Please help/!

Error running before_process: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/a-person-mask-generator/scripts/a_person_mask_generator.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 611, in before_process script.before_process(p, *script_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/a-person-mask-generator/scripts/a_person_mask_generator.py", line 293, in before_process p.image_mask = self.generate_mask(image=p.init_images[-1], mask_targets=mask_targets) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/a-person-mask-generator/scripts/a_person_mask_generator.py", line 65, in generate_mask options = ImageSegmenterOptions(base_options=BaseOptions(model_asset_path=model_path), TypeError: ImageSegmenterOptions.init() got an unexpected keyword argument 'output_category_mask'

nmarafo commented 10 months ago

add this code before launch Automatic1111: !pip install mediapipe --upgrade it works for me

agarzon commented 10 months ago

!pip install mediapipe --upgrade

This actually fixes my issue: https://github.com/djbielejeski/a-person-mask-generator/issues/16 a shame the dependency management its not well done.

djbielejeski commented 10 months ago

Welcome to python :/