Code Monkey home page Code Monkey logo

Comments (2)

TimRhr avatar TimRhr commented on August 16, 2024

I have the same problem. I was able to solve it by making some changes to the 'kohya_ss/library/common_gui.py' file. I modified the 'output_message' function on line 97 as follows:

def output_message(msg='', title='', headless=False):
    if headless:
        log.info(msg)
    else:
        #msgbox(msg=msg, title=title)
        log.info(f"title: {title}, message: {msg}")

This should temporarily bypass the error.

EDIT (short explanation):
The error "RuntimeError: main thread is not in main loop" occurs because tkinter operations, such as creating or modifying GUI elements, must be executed in the main thread of the application. In this case, the error arises because a tkinter function is being called from a background thread, which is not allowed by tkinter's threading model.

from kohya_ss.

djdavi avatar djdavi commented on August 16, 2024

Many thanks!

In the meantime I had solved it by uninstalling Pinokio and installing the various stand-alone versions of the AI apps used.
But I wasn't very enthusiastic about this solution because for each application I had to install different versions of phyton, additional apps, creating messes in the folders, taking up many extra GBs.
So I'm going to try this solution and go back to using Pinokio, I find it more organised and immediate to use a single app that contains everything I use.

Thanks

from kohya_ss.

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.