Giter VIP home page Giter VIP logo

Comments (5)

ryuan avatar ryuan commented on June 21, 2024

After some digging around, I believe I found the issue. For whatever reason (likely related to some particular setup with Apple Silicon Macs but could also be relevant to Windows devices), the extension isn't able to update the installed transparent_background dependency module to the required version during installation.

The update process fails because transparent_background itself requires the pyvirtualcam module, but pip struggles to install this package into Automatic's virtual environment. Actually, even attempting a regular pip install of pyvirtualcam on my Mac fails, giving ERROR: Could not find a version that satisfies the requirement pyvirtualcam.

The result of all of this is that transparent_background remains in an improper version and cannot initiate the Remover object (i.e., the outdated version of transparent_background does not have a fast argument for initiating Remover).

I would greatly appreciate if any of the contributors can help debug this issue so that this extension works on M1/M2 devices out-of-the-box. Perhaps future versions of this extension can find an alternative module to transparent_background, since it appears to only be used in stage1.py for creating the masks and there are other ways to accomplish this.

from ebsynth_utility.

s9roll7 avatar s9roll7 commented on June 21, 2024

I haven't tried it, but can you install it with this?
pip install git+https://github.com/letmaik/pyvirtualcam

from ebsynth_utility.

ryuan avatar ryuan commented on June 21, 2024

Yes, I can "forcibly" install pyvirtualcam by either passing the git repo URL to pip3 or downloading the ZIP and installing locally. Regular call of pip3 install pyvirtualcam doesn't work though.

The issue is that Automatic's venv still does not install pyvirtualcam as a dependency when installing the extension. I checked Automatic's site-packages directory and pyvirtualcam does not exist. As expected, because it doesn't exist, transparent_background module remains in an outdated version with a Remover package that doesn't have the fast argument.

Perhaps, in this extension's install.py script, it can check and install pyvirtualcam before installing transparent_background? But I worry that there is a deeper reason why pyvirtualcam doesn't install along with transparent_background as a dependency in the first place...

from ebsynth_utility.

s9roll7 avatar s9roll7 commented on June 21, 2024

https://github.com/letmaik/pyvirtualcam/issues/97
Perhaps this is the problem.
Shouldn't be a problem except for the MAC.

from ebsynth_utility.

ryuan avatar ryuan commented on June 21, 2024

Yes, this is exactly the issue I'm referring to. Seems they have no intension of addressing the issue though.

Regardless, I edited the extension code and now stage 1 successfully completes (masks are generated). I will provide manual resolution below, but hope something similar is implemented in future updates to the extension so that the below manual fix does not need to be applied with every update.

  1. Make sure to quit A1111 (just to be safe just exit Terminal as well).
  2. Go into /stable-diffusion-webui/extensions/ebsynth_utility and open install.py.
  3. Add the following block of code on line 11 and save the file. It should go below the first function update_transparent_background.
if not launch.is_installed("pyvirtualcam"):
    launch.run_pip("install git+https://github.com/letmaik/pyvirtualcam", "requirements for Ebsynth Utility")
  1. Launch A1111. Stage 1 for this extension should now work for you.

from ebsynth_utility.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.