Spaces:
Running
Running
LucyintheSky
commited on
Commit
•
fc3288f
1
Parent(s):
8201a51
Upload 58 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- README.md +4 -4
- app.py +94 -0
- images/Cat.JPG +0 -0
- images/Lisa.JPG +0 -0
- images/Mila.JPG +0 -0
- inswapper_128.onnx +3 -0
- loralucy1/checkpoint-35000/optimizer.bin +3 -0
- loralucy1/checkpoint-35000/pytorch_lora_weights.bin +3 -0
- loralucy1/checkpoint-35000/random_states_0.pkl +3 -0
- loralucy1/checkpoint-35000/scaler.pt +3 -0
- loralucy1/checkpoint-35000/scheduler.bin +3 -0
- loralucy1/info.rtf +24 -0
- loralucy1/metadata.csv +0 -0
- loralucy2/.DS_Store +0 -0
- loralucy2/checkpoint-20000/optimizer.bin +3 -0
- loralucy2/checkpoint-20000/pytorch_lora_weights.bin +3 -0
- loralucy2/checkpoint-20000/random_states_0.pkl +3 -0
- loralucy2/checkpoint-20000/scaler.pt +3 -0
- loralucy2/checkpoint-20000/scheduler.bin +3 -0
- loralucy2/checkpoint-40000/optimizer.bin +3 -0
- loralucy2/checkpoint-40000/pytorch_lora_weights.bin +3 -0
- loralucy2/checkpoint-40000/random_states_0.pkl +3 -0
- loralucy2/checkpoint-40000/scaler.pt +3 -0
- loralucy2/checkpoint-40000/scheduler.bin +3 -0
- loralucy2/info.rtf +23 -0
- loralucy2/metadata.csv +0 -0
- loralucy3/.DS_Store +0 -0
- loralucy3/checkpoint-35000/optimizer.bin +3 -0
- loralucy3/checkpoint-35000/pytorch_lora_weights.bin +3 -0
- loralucy3/checkpoint-35000/random_states_0.pkl +3 -0
- loralucy3/checkpoint-35000/scaler.pt +3 -0
- loralucy3/checkpoint-35000/scheduler.bin +3 -0
- loralucy3/checkpoint-70000/optimizer.bin +3 -0
- loralucy3/checkpoint-70000/pytorch_lora_weights.bin +3 -0
- loralucy3/checkpoint-70000/random_states_0.pkl +3 -0
- loralucy3/checkpoint-70000/scaler.pt +3 -0
- loralucy3/checkpoint-70000/scheduler.bin +3 -0
- loralucy3/checkpoint-95000/optimizer.bin +3 -0
- loralucy3/checkpoint-95000/pytorch_lora_weights.bin +3 -0
- loralucy3/checkpoint-95000/random_states_0.pkl +3 -0
- loralucy3/checkpoint-95000/scaler.pt +3 -0
- loralucy3/checkpoint-95000/scheduler.bin +3 -0
- loralucy3/info.rtf +23 -0
- loralucy3/info.rtf.docx +0 -0
- loralucy4/checkpoint-35000/optimizer.bin +3 -0
- loralucy4/checkpoint-35000/pytorch_lora_weights.bin +3 -0
- loralucy4/checkpoint-35000/random_states_0.pkl +3 -0
- loralucy4/checkpoint-35000/scaler.pt +3 -0
- loralucy4/checkpoint-35000/scheduler.bin +3 -0
- loralucy4/info.rtf +22 -0
README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
---
|
2 |
title: Lucy Text To Image
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.44.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
1 |
---
|
2 |
title: Lucy Text To Image
|
3 |
+
emoji: 💃
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: pink
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.44.3
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import torch
|
3 |
+
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
|
4 |
+
|
5 |
+
import numpy as np
|
6 |
+
import os
|
7 |
+
import cv2
|
8 |
+
from PIL import Image, ImageDraw
|
9 |
+
import insightface
|
10 |
+
from insightface.app import FaceAnalysis
|
11 |
+
|
12 |
+
# Diffusion
|
13 |
+
model_base = "runwayml/stable-diffusion-v1-5"
|
14 |
+
|
15 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_base, torch_dtype=torch.float16, use_safetensors=True, safety_checker=None,)
|
16 |
+
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
17 |
+
|
18 |
+
lora_model_path = "./loralucy3/checkpoint-95000"
|
19 |
+
pipe.unet.load_attn_procs(lora_model_path)
|
20 |
+
pipe.to("cuda")
|
21 |
+
|
22 |
+
|
23 |
+
# Insightface model
|
24 |
+
app = FaceAnalysis(name='buffalo_l')
|
25 |
+
app.prepare(ctx_id=0, det_size=(640, 640))
|
26 |
+
|
27 |
+
|
28 |
+
def face_swap(src_img, dest_img):
|
29 |
+
src_img = Image.open('./images/' + src_img + '.JPG')
|
30 |
+
|
31 |
+
# Convert to RGB
|
32 |
+
src_img = src_img.convert(mode='RGB')
|
33 |
+
dest_img = dest_img.convert(mode='RGB')
|
34 |
+
|
35 |
+
# Convert to array
|
36 |
+
src_img_arr = np.asarray(src_img)
|
37 |
+
dest_img_arr = np.asarray(dest_img)
|
38 |
+
|
39 |
+
# Face detection
|
40 |
+
src_faces = app.get(src_img_arr)
|
41 |
+
dest_faces = app.get(dest_img_arr)
|
42 |
+
|
43 |
+
# Initialize swapper
|
44 |
+
swapper = insightface.model_zoo.get_model('inswapper_128.onnx', download=False, download_zip=False)
|
45 |
+
|
46 |
+
# Swap face
|
47 |
+
res = dest_img_arr.copy()
|
48 |
+
for face in dest_faces:
|
49 |
+
res = swapper.get(res, face, src_faces[0], paste_back=True)
|
50 |
+
|
51 |
+
# Convert to PIL image
|
52 |
+
final_image = Image.fromarray(np.uint8(res)).convert('RGB')
|
53 |
+
|
54 |
+
return final_image
|
55 |
+
|
56 |
+
|
57 |
+
def greet(description,color,features,occasion,type_,face):
|
58 |
+
|
59 |
+
# Parse input
|
60 |
+
prompt = 'white background '
|
61 |
+
description = 'description:' + description.replace(' ', '-')
|
62 |
+
color = ' color:' + ','.join(color)
|
63 |
+
features = ' features:' + ','.join(features)
|
64 |
+
occasion = ' occasion:' + ','.join(occasion)
|
65 |
+
type_ = ' type:' + ','.join(type_)
|
66 |
+
|
67 |
+
prompt += description + color + features + occasion + type_
|
68 |
+
|
69 |
+
print('prompt:',prompt)
|
70 |
+
image = pipe(
|
71 |
+
prompt,
|
72 |
+
negative_prompt='deformed face,bad anatomy',
|
73 |
+
width=312,
|
74 |
+
height=512,
|
75 |
+
num_inference_steps=100,
|
76 |
+
guidance_scale=7.5,
|
77 |
+
cross_attention_kwargs={"scale": 1.0}
|
78 |
+
).images[0]
|
79 |
+
|
80 |
+
if(face != 'Normal'):
|
81 |
+
image = face_swap(face, image)
|
82 |
+
|
83 |
+
return image
|
84 |
+
|
85 |
+
iface = gr.Interface(fn=greet,
|
86 |
+
inputs=[gr.Textbox(label='Description'),
|
87 |
+
gr.Dropdown(label='Color',choices=['Beige','Black','Blue','Brown','Green','Grey','Orange','Pink','Purple','Red','White','Yellow'],multiselect=True),
|
88 |
+
gr.Dropdown(label='Features',choices=['3/4-sleeve','Babydoll','Closed-Back','Corset','Crochet','Cutouts','Draped','Floral','Gloves','Halter','Lace','Long','Long-Sleeve','Midi','No-Slit','Off-The-Shoulder','One-Shoulder','Open-Back','Pockets','Print','Puff-Sleeve','Ruched','Satin','Sequins','Shimmer','Short','Short-Sleeve','Side-Slit','Square-Neck','Strapless','Sweetheart-Neck','Tight','V-Neck','Velvet','Wrap'],multiselect=True),
|
89 |
+
gr.Dropdown(label='Occasion',choices=['Homecoming','Casual','Wedding-Guest','Festival','Sorority','Day','Vacation','Summer','Pool-Party','Birthday','Date-Night','Party','Holiday','Winter-Formal','Valentines-Day','Prom','Graduation'],multiselect=True),
|
90 |
+
gr.Dropdown(label='Type',choices=['Mini-Dresses','Midi-Dresses','Maxi-Dresses','Two-Piece-Sets','Rompers','Jeans','Jumpsuits','Pants','Tops','Jumpers/Cardigans','Skirts','Shorts','Bodysuits','Swimwear'],multiselect=True),
|
91 |
+
gr.Dropdown(label='Face',choices=['Normal','Cat','Lisa','Mila'], value='Normal'),
|
92 |
+
],
|
93 |
+
outputs=gr.Image(type="pil", label="Final Image", width=312, height=512))
|
94 |
+
iface.launch()
|
images/Cat.JPG
ADDED
images/Lisa.JPG
ADDED
images/Mila.JPG
ADDED
inswapper_128.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4a3f08c753cb72d04e10aa0f7dbe3deebbf39567d4ead6dce08e98aa49e16af
|
3 |
+
size 554253681
|
loralucy1/checkpoint-35000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac0cf707dd17cada7fc1f97899be3efb6372682bf70642c2d2033bec18e823cf
|
3 |
+
size 6591685
|
loralucy1/checkpoint-35000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80ee081eb9b1eabd7ae3f80f971aaf06eaac8eae6ad38968e87639cb7a37a3e2
|
3 |
+
size 3285965
|
loralucy1/checkpoint-35000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:131cb501aa6720cc278a757a65bb095d031d7415ef671ca68454c0a76dc5f556
|
3 |
+
size 14663
|
loralucy1/checkpoint-35000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e8530463188ad3de7f362004e414de7d21da743202d15e65bbd4ab8313cf8416
|
3 |
+
size 557
|
loralucy1/checkpoint-35000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e28cef8527edba887c7ff3167cfe3a6149805287445be342ca0bc400095b4915
|
3 |
+
size 563
|
loralucy1/info.rtf
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{\rtf1\ansi\ansicpg1252\cocoartf2709
|
2 |
+
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;}
|
3 |
+
{\colortbl;\red255\green255\blue255;\red0\green0\blue255;\red245\green245\blue245;\red0\green0\blue0;
|
4 |
+
\red144\green1\blue18;\red18\green112\blue68;}
|
5 |
+
{\*\expandedcolortbl;;\cssrgb\c0\c0\c100000;\cssrgb\c96863\c96863\c96863;\cssrgb\c0\c0\c0;
|
6 |
+
\cssrgb\c63922\c8235\c8235;\cssrgb\c3529\c50588\c33725;}
|
7 |
+
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
|
8 |
+
\deftab720
|
9 |
+
\pard\pardeftab720\partightenfactor0
|
10 |
+
|
11 |
+
\f0\fs28 \cf2 \cb3 \expnd0\expndtw0\kerning0
|
12 |
+
\outl0\strokewidth0 \strokec2 !\cf0 \strokec4 accelerate launch --mixed_precision=\cf5 \strokec5 "fp16"\cf0 \strokec4 train_text_to_image_lora.py \\\cb1 \
|
13 |
+
\pard\pardeftab720\partightenfactor0
|
14 |
+
\cf0 \cb3 --pretrained_model_name_or_path=\cf5 \strokec5 "CompVis/stable-diffusion-v1-4"\cf0 \strokec4 \\\cb1 \
|
15 |
+
\cb3 --dataset_name=\cf5 \strokec5 "tonyassi/lucyimages8"\cf0 \strokec4 --caption_column=\cf5 \strokec5 "text"\cf0 \strokec4 \\\cb1 \
|
16 |
+
\cb3 --resolution=\cf6 \strokec6 256\cf0 \strokec4 --random_flip \\\cb1 \
|
17 |
+
\cb3 --train_batch_size=\cf6 \strokec6 1\cf0 \strokec4 \\\cb1 \
|
18 |
+
\cb3 --num_train_epochs=\cf6 \strokec6 20\cf0 \strokec4 --checkpointing_steps=\cf6 \strokec6 5000\cf0 \strokec4 \\\cb1 \
|
19 |
+
\cb3 --learning_rate=\cf6 \strokec6 1e-04\cf0 \strokec4 --lr_scheduler=\cf5 \strokec5 "constant"\cf0 \strokec4 --lr_warmup_steps=\cf6 \strokec6 0\cf0 \strokec4 \\\cb1 \
|
20 |
+
\cb3 --seed=\cf6 \strokec6 42\cf0 \strokec4 \\\cb1 \
|
21 |
+
\cb3 --output_dir=model_name \\\cb1 \
|
22 |
+
\cb3 --resume_from_checkpoint=\cf5 \strokec5 "latest"\cf0 \strokec4 \\\cb1 \
|
23 |
+
\cb3 --validation_prompt=\cf5 \strokec5 "description:Foxie-Floral-Sequin-Tulle-Dress-in-White"\cf0 \cb1 \strokec4 \
|
24 |
+
}
|
loralucy1/metadata.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
loralucy2/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
loralucy2/checkpoint-20000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46847a1674c6b744900cd096a8b66aeab4b6d094fa1286aeffa4ca3765536b76
|
3 |
+
size 6591685
|
loralucy2/checkpoint-20000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38e5bf88d24fbab7379336c9e77a164466a529343dc5dd85e9ef2aa25c797727
|
3 |
+
size 3285965
|
loralucy2/checkpoint-20000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60169b53cf547e5f72c56bdafca78353d809af33b633e6b7962c346fee1ed438
|
3 |
+
size 14663
|
loralucy2/checkpoint-20000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6ff6f5a373c2615eb063d3d52a2276be8a58269d71bc0684b9901dc5f33a4c6
|
3 |
+
size 557
|
loralucy2/checkpoint-20000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b758b268ac78a512a1312cf9116e3ef39a1029d6034257a54a01b88d7ecb97c7
|
3 |
+
size 563
|
loralucy2/checkpoint-40000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:97f926109f4b8f6168c5a617be41ce99c284a34a47e7f0a7bb0146442dd0e275
|
3 |
+
size 6591685
|
loralucy2/checkpoint-40000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db3032db746c3017b4cf29e702c6156d3b96c227fe47d6bf7e6d112084b59dbe
|
3 |
+
size 3285965
|
loralucy2/checkpoint-40000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:336ca9cfddd159ee1a3b8b48150b22fa2aaa53a1626584c06af345a57fe94a8c
|
3 |
+
size 14663
|
loralucy2/checkpoint-40000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a08bf555fe0a37ec0288a4b86488a1baf45a41ecf34e03649c1a7a89509eba7
|
3 |
+
size 557
|
loralucy2/checkpoint-40000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78905dad7a29bfdbf8225c22d4d41e42c29da0c13028ac577c73149a949650dc
|
3 |
+
size 563
|
loralucy2/info.rtf
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{\rtf1\ansi\ansicpg1252\cocoartf2709
|
2 |
+
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;}
|
3 |
+
{\colortbl;\red255\green255\blue255;\red0\green0\blue255;\red245\green245\blue245;\red0\green0\blue0;
|
4 |
+
\red144\green1\blue18;\red18\green112\blue68;}
|
5 |
+
{\*\expandedcolortbl;;\cssrgb\c0\c0\c100000;\cssrgb\c96863\c96863\c96863;\cssrgb\c0\c0\c0;
|
6 |
+
\cssrgb\c63922\c8235\c8235;\cssrgb\c3529\c50588\c33725;}
|
7 |
+
\margl1440\margr1440\vieww20940\viewh8060\viewkind0
|
8 |
+
\deftab720
|
9 |
+
\pard\pardeftab720\partightenfactor0
|
10 |
+
|
11 |
+
\f0\fs28 \cf2 \cb3 \expnd0\expndtw0\kerning0
|
12 |
+
\outl0\strokewidth0 \strokec2 !\cf0 \strokec4 accelerate launch --mixed_precision=\cf5 \strokec5 "fp16"\cf0 \strokec4 train_text_to_image_lora.py \\\cb1 \
|
13 |
+
\pard\pardeftab720\partightenfactor0
|
14 |
+
\cf0 \cb3 --pretrained_model_name_or_path=\cf5 \strokec5 "runwayml/stable-diffusion-v1-5"\cf0 \strokec4 \\\cb1 \
|
15 |
+
\cb3 --dataset_name=\cf5 \strokec5 "tonyassi/lucyimages9"\cf0 \strokec4 --caption_column=\cf5 \strokec5 "text"\cf0 \strokec4 \\\cb1 \
|
16 |
+
\cb3 --resolution=\cf6 \strokec6 512\cf0 \strokec4 --random_flip \\\cb1 \
|
17 |
+
\cb3 --train_batch_size=\cf6 \strokec6 1\cf0 \strokec4 \\\cb1 \
|
18 |
+
\cb3 --num_train_epochs=\cf6 \strokec6 20\cf0 \strokec4 --checkpointing_steps=\cf6 \strokec6 5000\cf0 \strokec4 \\\cb1 \
|
19 |
+
\cb3 --learning_rate=\cf6 \strokec6 1e-04\cf0 \strokec4 --lr_scheduler=\cf5 \strokec5 "constant"\cf0 \strokec4 --lr_warmup_steps=\cf6 \strokec6 0\cf0 \strokec4 \\\cb1 \
|
20 |
+
\cb3 --seed=\cf6 \strokec6 42\cf0 \strokec4 \\\cb1 \
|
21 |
+
\cb3 --output_dir=model_name \\\cb1 \
|
22 |
+
\cb3 --validation_prompt=\cf5 \strokec5 "description:Foxie-Floral-Sequin-Tulle-Dress-in-White"\cf0 \cb1 \strokec4 \
|
23 |
+
}
|
loralucy2/metadata.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
loralucy3/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
loralucy3/checkpoint-35000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6cd02c2291ac317500d3f83deb96f442eb3c7cd22789f54e1931882f7a17327a
|
3 |
+
size 6591685
|
loralucy3/checkpoint-35000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07ccd4d8bfbd81730cda279412acbbbd7e43c4df96608cc08ab724eefb698411
|
3 |
+
size 3285965
|
loralucy3/checkpoint-35000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c193f06ec6ab696b580e2ad740eb02c964071f89005ff62d2097a44ace7fb6be
|
3 |
+
size 14663
|
loralucy3/checkpoint-35000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5ce96dd3273ed06031f93858263053d146b5922ba65b6ee3715691267a5c3cb
|
3 |
+
size 557
|
loralucy3/checkpoint-35000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:615ed84897fa9aaae16095b214e1a2455cee2363c31c8ab92c4f990e78a4b6a0
|
3 |
+
size 563
|
loralucy3/checkpoint-70000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2654ce884394ce3ff39bb696180f9fc56d65b58e0b7b0cdd795cb24696d25b49
|
3 |
+
size 6591685
|
loralucy3/checkpoint-70000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff11a492038db3ecd05788fb91aa913d1e916b7ca16288f65f9d9224e865035b
|
3 |
+
size 3285965
|
loralucy3/checkpoint-70000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5284b29ba849d3c48ef8323e087d5eedb6e558e8a568f214659ffe7fffe03af
|
3 |
+
size 14663
|
loralucy3/checkpoint-70000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83241dba87835d926ec7d034b7f8f7fbc4c4419de71de576b6952fb14258eca0
|
3 |
+
size 557
|
loralucy3/checkpoint-70000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cd8446361a037ef0561a3833121aa49be24861fbe4ebda4c39b792d26b5e39f6
|
3 |
+
size 563
|
loralucy3/checkpoint-95000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e39a6f9f076342b59d0b7e44e1da4dca6111a45f7e5d8dc024adbcda04abc249
|
3 |
+
size 6591685
|
loralucy3/checkpoint-95000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6b874b84bda72cea1e6c28d06871171b6053144e219a8b46889e394641d29dc
|
3 |
+
size 3285965
|
loralucy3/checkpoint-95000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e710d59079fc3ef24e13b6cfaf964cfa240abec86db9ef551897fbdd534368e
|
3 |
+
size 14663
|
loralucy3/checkpoint-95000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a4c67975f312bfc2baa497baba79591a20ce7e0cf5d033184c78f436ad017d1
|
3 |
+
size 557
|
loralucy3/checkpoint-95000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:158cd86c3aaffd1e3ff735cadc57d5092ecc711f4abeca783e2650a08a72bfc7
|
3 |
+
size 563
|
loralucy3/info.rtf
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{\rtf1\ansi\ansicpg1252\cocoartf2709
|
2 |
+
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;}
|
3 |
+
{\colortbl;\red255\green255\blue255;\red0\green0\blue255;\red245\green245\blue245;\red0\green0\blue0;
|
4 |
+
\red144\green1\blue18;\red18\green112\blue68;}
|
5 |
+
{\*\expandedcolortbl;;\cssrgb\c0\c0\c100000;\cssrgb\c96863\c96863\c96863;\cssrgb\c0\c0\c0;
|
6 |
+
\cssrgb\c63922\c8235\c8235;\cssrgb\c3529\c50588\c33725;}
|
7 |
+
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
|
8 |
+
\deftab720
|
9 |
+
\pard\pardeftab720\partightenfactor0
|
10 |
+
|
11 |
+
\f0\fs28 \cf2 \cb3 \expnd0\expndtw0\kerning0
|
12 |
+
\outl0\strokewidth0 \strokec2 !\cf0 \strokec4 accelerate launch --mixed_precision=\cf5 \strokec5 "fp16"\cf0 \strokec4 train_text_to_image_lora.py \\\cb1 \
|
13 |
+
\pard\pardeftab720\partightenfactor0
|
14 |
+
\cf0 \cb3 --pretrained_model_name_or_path=\cf5 \strokec5 "runwayml/stable-diffusion-v1-5"\cf0 \strokec4 \\\cb1 \
|
15 |
+
\cb3 --dataset_name=\cf5 \strokec5 "tonyassi/lucyimages10"\cf0 \strokec4 --caption_column=\cf5 \strokec5 "text"\cf0 \strokec4 \\\cb1 \
|
16 |
+
\cb3 --resolution=\cf6 \strokec6 512\cf0 \strokec4 --random_flip \\\cb1 \
|
17 |
+
\cb3 --train_batch_size=\cf6 \strokec6 1\cf0 \strokec4 \\\cb1 \
|
18 |
+
\cb3 --num_train_epochs=\cf6 \strokec6 20\cf0 \strokec4 --checkpointing_steps=\cf6 \strokec6 5000\cf0 \strokec4 \\\cb1 \
|
19 |
+
\cb3 --learning_rate=\cf6 \strokec6 1e-04\cf0 \strokec4 --lr_scheduler=\cf5 \strokec5 "constant"\cf0 \strokec4 --lr_warmup_steps=\cf6 \strokec6 0\cf0 \strokec4 \\\cb1 \
|
20 |
+
\cb3 --seed=\cf6 \strokec6 42\cf0 \strokec4 \\\cb1 \
|
21 |
+
\cb3 --output_dir=model_name \\\cb1 \
|
22 |
+
\cb3 --validation_prompt=\cf5 \strokec5 "description:Foxie-Floral-Sequin-Tulle-Dress-in-White"\cf0 \cb1 \strokec4 \
|
23 |
+
}
|
loralucy3/info.rtf.docx
ADDED
Binary file (6.89 kB). View file
|
|
loralucy4/checkpoint-35000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef6331d6dbdc6ce37827512a302a31106d70ba32e679e90f045a46a52509fe6e
|
3 |
+
size 6591685
|
loralucy4/checkpoint-35000/pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fba3fe60a8a48546d1d60e3c8e2c647288151984344c89d77bbc2ae1f89c98a
|
3 |
+
size 3285965
|
loralucy4/checkpoint-35000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c193f06ec6ab696b580e2ad740eb02c964071f89005ff62d2097a44ace7fb6be
|
3 |
+
size 14663
|
loralucy4/checkpoint-35000/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:31c2946135e8f4d71cfa43853b80f0797bd30a0df7a5fa7001513a6507ec8de8
|
3 |
+
size 557
|
loralucy4/checkpoint-35000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:615ed84897fa9aaae16095b214e1a2455cee2363c31c8ab92c4f990e78a4b6a0
|
3 |
+
size 563
|
loralucy4/info.rtf
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{\rtf1\ansi\ansicpg1252\cocoartf2709
|
2 |
+
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;}
|
3 |
+
{\colortbl;\red255\green255\blue255;\red0\green0\blue255;\red245\green245\blue245;\red0\green0\blue0;
|
4 |
+
\red144\green1\blue18;\red18\green112\blue68;}
|
5 |
+
{\*\expandedcolortbl;;\cssrgb\c0\c0\c100000;\cssrgb\c96863\c96863\c96863;\cssrgb\c0\c0\c0;
|
6 |
+
\cssrgb\c63922\c8235\c8235;\cssrgb\c3529\c50588\c33725;}
|
7 |
+
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
|
8 |
+
\deftab720
|
9 |
+
\pard\pardeftab720\partightenfactor0
|
10 |
+
|
11 |
+
\f0\fs28 \cf2 \cb3 \expnd0\expndtw0\kerning0
|
12 |
+
\outl0\strokewidth0 \strokec2 !\cf0 \strokec4 accelerate launch --mixed_precision=\cf5 \strokec5 "fp16"\cf0 \strokec4 train_text_to_image_lora.py \\\cb1 \
|
13 |
+
\cb3 --pretrained_model_name_or_path=\cf5 \strokec5 "CompVis/stable-diffusion-v1-4"\cf0 \strokec4 \\\cb1 \
|
14 |
+
\cb3 --dataset_name=\cf5 \strokec5 "tonyassi/lucyimages10"\cf0 \strokec4 --caption_column=\cf5 \strokec5 "text"\cf0 \strokec4 \\\cb1 \
|
15 |
+
\cb3 --resolution=\cf6 \strokec6 512\cf0 \strokec4 --random_flip \\\cb1 \
|
16 |
+
\cb3 --train_batch_size=\cf6 \strokec6 1\cf0 \strokec4 \\\cb1 \
|
17 |
+
\cb3 --num_train_epochs=\cf6 \strokec6 20\cf0 \strokec4 --checkpointing_steps=\cf6 \strokec6 5000\cf0 \strokec4 \\\cb1 \
|
18 |
+
\cb3 --learning_rate=\cf6 \strokec6 1e-04\cf0 \strokec4 --lr_scheduler=\cf5 \strokec5 "constant"\cf0 \strokec4 --lr_warmup_steps=\cf6 \strokec6 0\cf0 \strokec4 \\\cb1 \
|
19 |
+
\cb3 --seed=\cf6 \strokec6 42\cf0 \strokec4 \\\cb1 \
|
20 |
+
\cb3 --output_dir=model_name \\\cb1 \
|
21 |
+
\cb3 --validation_prompt=\cf5 \strokec5 "description:Foxie-Floral-Sequin-Tulle-Dress-in-White"\cf0 \cb1 \strokec4 \
|
22 |
+
}
|