File size: 2,408 Bytes
05d9d9c
 
 
0f9494f
 
 
 
 
8a330e9
 
 
 
 
 
 
 
 
 
0f9494f
 
 
 
 
 
 
 
94515cb
0f9494f
 
 
 
8000c42
 
 
 
 
 
8809a79
0f9494f
8809a79
0f9494f
8809a79
0f9494f
8809a79
 
0f9494f
8809a79
0f9494f
8809a79
 
0f9494f
8809a79
0f9494f
8809a79
 
0f9494f
8809a79
0f9494f
8809a79
0f9494f
8809a79
0f9494f
8809a79
 
0f9494f
8809a79
0f9494f
8809a79
0f9494f
27a6bb6
 
 
 
6174b8d
 
 
 
 
 
 
 
 
0f9494f
 
8809a79
0f9494f
8809a79
0f9494f
8809a79
0f9494f
8809a79
0f9494f
8809a79
0f9494f
8809a79
 
 
 
 
 
 
0f9494f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---

license: mit
---


# lora-ease-wsl

This is a modified Python script of LoRA Ease from multimodalart to run on locally on Windows 11 via WSL. Thanks to multimodalart for this wonderful script.


Github version of this repo:  
[https://github.com/dicksondickson/lora-ease-wsl](https://github.com/dicksondickson/lora-ease-wsl)  


Hugging Face version of this repo:   
[https://huggingface.co/dicksondickson/lora-ease-wsl](https://huggingface.co/dicksondickson/lora-ease-wsl)   



Original repo:  
[https://huggingface.co/spaces/multimodalart/lora-ease](https://huggingface.co/spaces/multimodalart/lora-ease)  


Thier blog post on the script:  
[https://huggingface.co/blog/sdxl_lora_advanced_script](https://huggingface.co/blog/sdxl_lora_advanced_script)  


araminta_k's training tutorial:  

[https://huggingface.co/blog/alvdansen/training-lora-m3lt](https://huggingface.co/blog/alvdansen/training-lora-m3lt)  







# Changelog  

v1.1 - Add Apple Metal support.  

v1.0 - Init fork and modified to run on Windows WSL.  







# Install  



Install WSL with Ubuntu (Ubuntu 22.04)  



`wsl --install Ubuntu`  



You'll be asked to provide a username and password for your Ubuntu install.  

You should now be logged into your WSL Ubuntu distro.



Update the system packages:   



`sudo apt update`   

`sudo apt upgrade`   



Install Python related stuff:   



`sudo apt install python-is-python3`   

`sudo apt install python3-pip`   



Check if your Nvidia video card is recognized:   



`nvidia-smi`   



Make sure you are currently in your home directory:   



`cd $home`   

`pwd`   



Make a new directory to clone lora ease repo:   



`mkdir train`   



Go into dir:   



`cd train`   



Clone this repo from Github:   



`git clone https://github.com/dicksondickson/lora-ease-wsl.git`   





Or from Hugging Face:   



`git clone https://huggingface.co/dicksondickson/lora-ease-wsl`   







Go into the dir:   



`cd lora-ease-wsl`   



Install lora ease required dependencies:   



`pip install -r requirements_local.txt`   

Run the LoRA Ease main python script. This will automatically install other stuff and download required models.   

`python app.py`   

After that is done, you should be presented with a link to load up the GUI in your web browser:   

`Running on local URL:  http://127.0.0.1:7860`   

Have fun!