Code Monkey home page Code Monkey logo

Comments (11)

bmaltais avatar bmaltais commented on June 29, 2024 4

Awesome, I will add the info to the readme to point users to it.

from kohya_ss.

devNegative-asm avatar devNegative-asm commented on June 29, 2024 3

I just ran everything in ubuntu and it requires very little changes to get it to work properly. There's just 2 lines of code needed in lora_gui.py

-    run_cmd = f'accelerate launch --num_cpu_threads_per_process={num_cpu_threads_per_process} "train_network.py"'
+    run_cmd = f'accelerate launch --num_cpu_threads_per_process={num_cpu_threads_per_process} train_network.py'
-    subprocess.run(run_cmd)
+    subprocess.run(run_cmd,shell=True)

and a new file gui.sh

#!/bin/bash
source venv/bin/activate
python kohya_gui.py $@

In the setup, skip copying bitsandbytes files and replacing windows commands with the linux counterpart can get it working.
If you haven't already sudo apt install python3-tk

from kohya_ss.

narugo1992 avatar narugo1992 commented on June 29, 2024 1

Ok, I may contribute code in the future as well.

from kohya_ss.

martinobettucci avatar martinobettucci commented on June 29, 2024 1

Hello to everyone, we added more instructions and we updated to the last updates as they all passed our quality control.
Feel free to ask for any help in the issues panel of the linux repository.

@bmaltais @runner22k @developer90210brr @narugo1992

from kohya_ss.

bmaltais avatar bmaltais commented on June 29, 2024

Sorry, I focus mostly on Windows. If someone can create one it would be awesome and I will add it to the repo... but I think some of the python code will need to be adjusted to work for both linux and Windows...

from kohya_ss.

martinobettucci avatar martinobettucci commented on June 29, 2024

Currently porting the repository to Linux (still WIP): https://github.com/P2Enjoy/kohya_ss

@narugo1992 @bmaltais

from kohya_ss.

martinobettucci avatar martinobettucci commented on June 29, 2024

I've created the repo tandem of the linux version here: it's a docker https://github.com/P2Enjoy/kohya_ss-docker

from kohya_ss.

runner22k avatar runner22k commented on June 29, 2024

Wow! I want Linux version. As it is based on Python, I tried to run it in Linux. But it is unable to find files. I am not a developer. But if I get to see a reference code or given a specific python script to convert to Linux. Then I can try to help, I can google and find solutions as much as I can based on errors and help with correcting and testing on Linux.

from kohya_ss.

developer90210brr avatar developer90210brr commented on June 29, 2024

would be nice if someone can make a notebook for it on paperspace as i only have a 1070 and i dont have enough vram (8gb) even as much optimized as i can get still run out on lora training so would be super nice to be able to use a quadro rtx5000 on paperspace or something

from kohya_ss.

martinobettucci avatar martinobettucci commented on June 29, 2024

Linux docker have been updated with latest changes

from kohya_ss.

devNegative-asm avatar devNegative-asm commented on June 29, 2024

I incorporated everything I mentioned into a script here #288
Rather than using that commit as-is, I recommend taking that, removing the sed commands, and merging it together with #272

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.