Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Abhishek Thakur
commited on
Commit
·
0842195
1
Parent(s):
285aab9
hub fixes
Browse files- app.py +1 -0
- train_lora_flux_24gb.yaml +5 -15
app.py
CHANGED
|
@@ -164,6 +164,7 @@ def start_training(
|
|
| 164 |
config["config"]["process"][0]["network"]["linear"] = int(rank)
|
| 165 |
config["config"]["process"][0]["network"]["linear_alpha"] = int(rank)
|
| 166 |
config["config"]["process"][0]["datasets"][0]["folder_path"] = dataset_folder
|
|
|
|
| 167 |
if concept_sentence:
|
| 168 |
config["config"]["process"][0]["trigger_word"] = concept_sentence
|
| 169 |
if sample_1 or sample_2 or sample_2:
|
|
|
|
| 164 |
config["config"]["process"][0]["network"]["linear"] = int(rank)
|
| 165 |
config["config"]["process"][0]["network"]["linear_alpha"] = int(rank)
|
| 166 |
config["config"]["process"][0]["datasets"][0]["folder_path"] = dataset_folder
|
| 167 |
+
config["config"]["process"][0]["save"]["hf_repo_id"] = f"{profile.username}/{slugged_lora_name}"
|
| 168 |
if concept_sentence:
|
| 169 |
config["config"]["process"][0]["trigger_word"] = concept_sentence
|
| 170 |
if sample_1 or sample_2 or sample_2:
|
train_lora_flux_24gb.yaml
CHANGED
|
@@ -19,12 +19,12 @@ config:
|
|
| 19 |
linear_alpha: 16
|
| 20 |
save:
|
| 21 |
dtype: float16 # precision to save
|
| 22 |
-
save_every:
|
| 23 |
max_step_saves_to_keep: 4 # how many intermittent saves to keep
|
| 24 |
-
push_to_hub:
|
| 25 |
# You can either set up a HF_TOKEN env variable or you'll be prompted to log-in
|
| 26 |
-
|
| 27 |
-
|
| 28 |
datasets:
|
| 29 |
# datasets are a folder of images. captions need to be txt files with the same name as the image
|
| 30 |
# for instance image2.jpg and image2.txt. Only jpg, jpeg, and png are supported currently
|
|
@@ -74,17 +74,7 @@ config:
|
|
| 74 |
height: 1024
|
| 75 |
prompts:
|
| 76 |
# you can add [trigger] to the prompts here and it will be replaced with the trigger word
|
| 77 |
-
|
| 78 |
-
- "woman with red hair, playing chess at the park, bomb going off in the background"
|
| 79 |
-
- "a woman holding a coffee cup, in a beanie, sitting at a cafe"
|
| 80 |
-
- "a horse is a DJ at a night club, fish eye lens, smoke machine, lazer lights, holding a martini"
|
| 81 |
-
- "a man showing off his cool new t shirt at the beach, a shark is jumping out of the water in the background"
|
| 82 |
-
- "a bear building a log cabin in the snow covered mountains"
|
| 83 |
-
- "woman playing the guitar, on stage, singing a song, laser lights, punk rocker"
|
| 84 |
-
- "hipster man with a beard, building a chair, in a wood shop"
|
| 85 |
-
- "photo of a man, white background, medium shot, modeling clothing, studio lighting, white backdrop"
|
| 86 |
-
- "a man holding a sign that says, 'this is a sign'"
|
| 87 |
-
- "a bulldog, in a post apocalyptic world, with a shotgun, in a leather jacket, in a desert, with a motorcycle"
|
| 88 |
neg: "" # not used on flux
|
| 89 |
seed: 42
|
| 90 |
walk_seed: true
|
|
|
|
| 19 |
linear_alpha: 16
|
| 20 |
save:
|
| 21 |
dtype: float16 # precision to save
|
| 22 |
+
save_every: 10000 # save every this many steps
|
| 23 |
max_step_saves_to_keep: 4 # how many intermittent saves to keep
|
| 24 |
+
push_to_hub: true #change this to True to push your trained model to Hugging Face.
|
| 25 |
# You can either set up a HF_TOKEN env variable or you'll be prompted to log-in
|
| 26 |
+
hf_repo_id: your-username/your-model-slug
|
| 27 |
+
hf_private: true #whether the repo is private or public
|
| 28 |
datasets:
|
| 29 |
# datasets are a folder of images. captions need to be txt files with the same name as the image
|
| 30 |
# for instance image2.jpg and image2.txt. Only jpg, jpeg, and png are supported currently
|
|
|
|
| 74 |
height: 1024
|
| 75 |
prompts:
|
| 76 |
# you can add [trigger] to the prompts here and it will be replaced with the trigger word
|
| 77 |
+
- "[trigger]"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
neg: "" # not used on flux
|
| 79 |
seed: 42
|
| 80 |
walk_seed: true
|