djbielejeski / a-person-mask-generator

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

Resolve Windows-Specific Path Duplication in a_person_mask_generator Script #26

Closed rmcc3 closed 5 months ago

rmcc3 commented 5 months ago

Description

This pull request addresses a Windows-specific path duplication issue in the a_person_mask_generator.py script. On Windows, the script incorrectly constructs the model file path by appending the base directory twice, resulting in a runtime error when attempting to initialize the MediaPipe ImageSegmenter.

Changes Made

How to Test

  1. On a Windows system, set up and run the process that utilizes the a_person_mask_generator script within the Stable Diffusion web UI.
  2. Verify that the script executes without encountering the previous runtime error related to path duplication.

Issue Fixed

This fix resolves a Windows-specific runtime error caused by incorrect path construction in the a_person_mask_generator.py script, enhancing the script's compatibility and reliability on Windows platforms.