Giter Site home page Giter Site logo

Comments (2)

lllyasviel avatar lllyasviel commented on June 16, 2024

probably fixed in 1.0.16
https://github.com/lllyasviel/Fooocus/blob/main/update_log.md
launch with "run.bat" to update

from fooocus.

rickardholmberg avatar rickardholmberg commented on June 16, 2024

Nope, still getting the same error. The call to modules.cv2win32.show_preview in get_previewer() is still unguarded. It's also seems a bit scary to catch assertions... The gist also doens't work out-of-the-box for me, I get this:

Exception in thread Thread-2 (worker):
Traceback (most recent call last):
  File "/Users/rho/mambaforge/envs/fooocus/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/Users/rho/mambaforge/envs/fooocus/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/rho/git/Fooocus/modules/cv2win32.py", line 12, in worker
    cv2.waitKey(50)
cv2.error: Unknown C++ exception from OpenCV code

I just removed the calls to close_all_preview() and show_preview(), and then it works great (albeit without previews). See an old branch (pre 1.0.16) at https://github.com/rickardholmberg/Fooocus/tree/rickard/run-on-macos

from fooocus.

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.