Skip to content

Commit 92fae07

Browse files
committed
first commit
0 parents  commit 92fae07

File tree

6 files changed

+629
-0
lines changed

6 files changed

+629
-0
lines changed

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM runpod/pytorch:2.2.1-py3.10-cuda12.1.1-devel-ubuntu22.04
2+
WORKDIR /content
3+
ENV PATH="/home/camenduru/.local/bin:${PATH}"
4+
5+
RUN adduser --disabled-password --gecos '' camenduru && \
6+
adduser camenduru sudo && \
7+
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
8+
chown -R camenduru:camenduru /content && \
9+
chmod -R 777 /content && \
10+
chown -R camenduru:camenduru /home && \
11+
chmod -R 777 /home && \
12+
apt update -y && add-apt-repository -y ppa:git-core/ppa && apt update -y && apt install -y aria2 git git-lfs unzip ffmpeg
13+
14+
USER camenduru
15+
16+
RUN pip install -q opencv-python imageio imageio-ffmpeg ffmpeg-python av runpod \
17+
xformers==0.0.25 torchsde==0.2.6 einops==0.8.0 diffusers==0.28.0 transformers==4.41.2 accelerate==0.30.1 && \
18+
git clone https://github.com/comfyanonymous/ComfyUI /content/ComfyUI && \
19+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/flux1-dev.sft -d /content/ComfyUI/models/unet -o flux1-dev.sft && \
20+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/clip_l.safetensors -d /content/ComfyUI/models/clip -o clip_l.safetensors && \
21+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/t5xxl_fp16.safetensors -d /content/ComfyUI/models/clip -o t5xxl_fp16.safetensors && \
22+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/ae.sft -d /content/ComfyUI/models/vae -o ae.sft
23+
24+
COPY ./worker_runpod.py /content/ComfyUI/worker_runpod.py
25+
WORKDIR /content/ComfyUI
26+
CMD python worker_runpod.py

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🐣 Please follow me for new updates https://twitter.com/camenduru <br />
2+
🔥 Please join our discord server https://discord.gg/k5BwmmvJJU <br />
3+
🥳 Please join my patreon community https://patreon.com/camenduru <br />
4+
5+
### 🥪 Tost
6+
https://tost.ai
7+
8+
### 🧬 Code
9+
https://github.com/black-forest-labs/flux
10+
11+
### 🌐 Page
12+
https://blackforestlabs.ai/
13+
14+
### 🖼 Output
15+
![ComfyUI_00854_](https://github.com/user-attachments/assets/06af2e9f-1a9b-44b9-bf55-a4632cc08ef5)
16+
![Screenshot 2024-08-01 225221](https://github.com/user-attachments/assets/89523ac4-9e18-4ad1-90c2-e6aa979be769)
17+
18+
### 🏢 Sponsor
19+
https://runpod.io

model.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"positive_prompt": "cute anime girl with massive fluffy fennec ears and a big fluffy tail blonde messy long hair blue eyes wearing a maid outfit with a long black dress with a gold leaf pattern and a white apron eating a slice of an apple pie in the kitchen of an old dark victorian mansion with a bright window and very expensive stuff everywhere",
3+
"seed": 0,
4+
"steps": 20,
5+
"guidance": 3.5,
6+
"lora_url": "https://files.catbox.moe/td1n1o.safetensors",
7+
"lora_strength_model": 1,
8+
"lora_strength_clip": 1,
9+
"sampler_name": "euler",
10+
"scheduler": "simple",
11+
"width": 1024,
12+
"height": 1024
13+
}

schema.json

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
3+
"type": "object",
4+
"properties": {
5+
"readme": {
6+
"type": "string",
7+
"title": "Model: Flux.1 Dev | Loras: XLabsAI Realism, Advokat Aesthetic",
8+
"author": "Black Forest Labs: Andreas Blattmann, Andrew Holmes, Axel Sauer, Dominik Lorenz, Dustin Podell, Frederic Boesel, Harry Saini, Jonas Müller, Kyle Lacey, Patrick Esser, Robin Rombach, Sumith Kulal, Tim Dockhorn, Yam Levi, Zion English",
9+
"page": "https://blackforestlabs.ai/",
10+
"code": "https://github.com/black-forest-labs/flux",
11+
"jupyter": "https://github.com/camenduru/flux-jupyter",
12+
"api": "https://github.com/camenduru/tost-api-examples/blob/main/v1/flux.1-dev.ipynb",
13+
"tags": [
14+
"Text to Image"
15+
],
16+
"widget": "readme"
17+
},
18+
"positive_prompt": {
19+
"type": "string",
20+
"description": "Prompt",
21+
"widget": "textarea"
22+
},
23+
"seed": {
24+
"type": "integer",
25+
"description": "Seed (if 0 random)"
26+
},
27+
"steps": {
28+
"type": "integer",
29+
"widget": "select",
30+
"description": "Steps",
31+
"oneOf": [
32+
{
33+
"description": "10",
34+
"enum": [
35+
10
36+
]
37+
},
38+
{
39+
"description": "20",
40+
"enum": [
41+
20
42+
]
43+
},
44+
{
45+
"description": "30",
46+
"enum": [
47+
30
48+
]
49+
}
50+
],
51+
"default": 20
52+
},
53+
"guidance": {
54+
"type": "number",
55+
"description": "Guidance"
56+
},
57+
"lora_url": {
58+
"type": "string",
59+
"description": "Lora URL",
60+
"widget": "textarea"
61+
},
62+
"lora_strength_model": {
63+
"type": "number",
64+
"widget": "select",
65+
"description": "Lora Strength Model",
66+
"oneOf": [
67+
{
68+
"description": "0",
69+
"enum": [
70+
0
71+
]
72+
},
73+
{
74+
"description": "0.5",
75+
"enum": [
76+
0.5
77+
]
78+
},
79+
{
80+
"description": "1",
81+
"enum": [
82+
1
83+
]
84+
}
85+
],
86+
"default": 1
87+
},
88+
"lora_strength_clip": {
89+
"type": "number",
90+
"widget": "select",
91+
"description": "Lora Strength Clip",
92+
"oneOf": [
93+
{
94+
"description": "0",
95+
"enum": [
96+
0
97+
]
98+
},
99+
{
100+
"description": "0.5",
101+
"enum": [
102+
0.5
103+
]
104+
},
105+
{
106+
"description": "1",
107+
"enum": [
108+
1
109+
]
110+
}
111+
],
112+
"default": 1
113+
},
114+
"sampler_name": {
115+
"type": "string",
116+
"widget": "select",
117+
"description": "Sampler Name",
118+
"oneOf": [
119+
{
120+
"description": "euler",
121+
"enum": [
122+
"euler"
123+
]
124+
},
125+
{
126+
"description": "heun",
127+
"enum": [
128+
"heun"
129+
]
130+
},
131+
{
132+
"description": "heunpp2",
133+
"enum": [
134+
"heunpp2"
135+
]
136+
},
137+
{
138+
"description": "dpm_2",
139+
"enum": [
140+
"dpm_2"
141+
]
142+
},
143+
{
144+
"description": "lms",
145+
"enum": [
146+
"lms"
147+
]
148+
},
149+
{
150+
"description": "dpmpp_2m",
151+
"enum": [
152+
"dpmpp_2m"
153+
]
154+
},
155+
{
156+
"description": "ipndm",
157+
"enum": [
158+
"ipndm"
159+
]
160+
},
161+
{
162+
"description": "deis",
163+
"enum": [
164+
"deis"
165+
]
166+
},
167+
{
168+
"description": "ddim",
169+
"enum": [
170+
"ddim"
171+
]
172+
},
173+
{
174+
"description": "uni_pc",
175+
"enum": [
176+
"uni_pc"
177+
]
178+
},
179+
{
180+
"description": "uni_pc_bh2",
181+
"enum": [
182+
"uni_pc_bh2"
183+
]
184+
}
185+
],
186+
"default": "euler"
187+
},
188+
"scheduler": {
189+
"type": "string",
190+
"widget": "select",
191+
"description": "Scheduler",
192+
"oneOf": [
193+
{
194+
"description": "normal",
195+
"enum": [
196+
"normal"
197+
]
198+
},
199+
{
200+
"description": "sgm_uniform",
201+
"enum": [
202+
"sgm_uniform"
203+
]
204+
},
205+
{
206+
"description": "simple",
207+
"enum": [
208+
"simple"
209+
]
210+
},
211+
{
212+
"description": "ddim_uniform",
213+
"enum": [
214+
"ddim_uniform"
215+
]
216+
}
217+
],
218+
"default": "simple"
219+
},
220+
"width": {
221+
"type": "integer",
222+
"description": "Width"
223+
},
224+
"height": {
225+
"type": "integer",
226+
"description": "Height"
227+
}
228+
},
229+
"buttons": [
230+
{
231+
"id": "enter",
232+
"label": "🥪 Enter"
233+
}
234+
]
235+
}

0 commit comments

Comments
 (0)