Upload folder using huggingface_hub
Browse files- README.md +48 -0
- The_Thing.safetensors +3 -0
- The_Thing_000003000.safetensors +3 -0
- The_Thing_000003250.safetensors +3 -0
- The_Thing_000003500.safetensors +3 -0
- The_Thing_000003750.safetensors +3 -0
- config.yaml +66 -0
- optimizer.pt +3 -0
- samples/.ipynb_checkpoints/1740323942163__000000000_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740327528027__000000250_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740331115653__000000500_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740334693739__000000750_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740340396248__000001000_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740343953077__000001250_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740347522014__000001500_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740390598607__000002250_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740394168586__000002500_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740412427389__000003500_0-checkpoint.jpg +0 -0
- samples/.ipynb_checkpoints/1740419466944__000004000_0-checkpoint.jpg +0 -0
- samples/1740323942163__000000000_0.jpg +0 -0
- samples/1740327528027__000000250_0.jpg +0 -0
- samples/1740331115653__000000500_0.jpg +0 -0
- samples/1740334693739__000000750_0.jpg +0 -0
- samples/1740340396248__000001000_0.jpg +0 -0
- samples/1740343953077__000001250_0.jpg +0 -0
- samples/1740347522014__000001500_0.jpg +0 -0
- samples/1740351104626__000001750_0.jpg +0 -0
- samples/1740354675416__000002000_0.jpg +0 -0
- samples/1740390598607__000002250_0.jpg +0 -0
- samples/1740394168586__000002500_0.jpg +0 -0
- samples/1740397743776__000002750_0.jpg +0 -0
- samples/1740401313501__000003000_0.jpg +0 -0
- samples/1740404898055__000003250_0.jpg +0 -0
- samples/1740412427389__000003500_0.jpg +0 -0
- samples/1740415953522__000003750_0.jpg +0 -0
- samples/1740419466944__000004000_0.jpg +0 -0
README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
+
- flux
|
| 5 |
+
- lora
|
| 6 |
+
- diffusers
|
| 7 |
+
- template:sd-lora
|
| 8 |
+
- ai-toolkit
|
| 9 |
+
widget:
|
| 10 |
+
- text: The Thing wearing a black and white tuxedo. He's in an office on a bright
|
| 11 |
+
afternoon. [trigger]
|
| 12 |
+
output:
|
| 13 |
+
url: samples/1740419466944__000004000_0.jpg
|
| 14 |
+
base_model: black-forest-labs/FLUX.1-dev
|
| 15 |
+
instance_prompt: The_Thing
|
| 16 |
+
license: creativeml-openrail-m
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# The_Thing
|
| 22 |
+
Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)
|
| 23 |
+
<Gallery />
|
| 24 |
+
|
| 25 |
+
## Trigger words
|
| 26 |
+
|
| 27 |
+
You should use `The_Thing` to trigger the image generation.
|
| 28 |
+
|
| 29 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
|
| 30 |
+
|
| 31 |
+
Weights for this model are available in Safetensors format.
|
| 32 |
+
|
| 33 |
+
[Download](/ayanda13/The_Thing/tree/main) them in the Files & versions tab.
|
| 34 |
+
|
| 35 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 36 |
+
|
| 37 |
+
```py
|
| 38 |
+
from diffusers import AutoPipelineForText2Image
|
| 39 |
+
import torch
|
| 40 |
+
|
| 41 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('/notebooks/ai-toolkit/black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
|
| 42 |
+
pipeline.load_lora_weights('ayanda13/The_Thing', weight_name='The_Thing.safetensors')
|
| 43 |
+
image = pipeline('The Thing wearing a black and white tuxedo. He's in an office on a bright afternoon. [trigger]').images[0]
|
| 44 |
+
image.save("my_image.png")
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
| 48 |
+
|
The_Thing.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efea882917887903f46edf19bd075b4013015c2169fc51e335d1ad8a4e87a668
|
| 3 |
+
size 171969448
|
The_Thing_000003000.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d578085544a27dd183b31f61be914c0a4f1596d0b2f0e0e47e1377cba38553d
|
| 3 |
+
size 171969448
|
The_Thing_000003250.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c03b73486bf8568b66dec403420401db1040ed0133797e78e8fa8349cd09776b
|
| 3 |
+
size 171969448
|
The_Thing_000003500.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a5e655ebe8ffd1fbe7a98b245780d5aca3d2a5369ab82e1fb536d9e465bf935
|
| 3 |
+
size 171969448
|
The_Thing_000003750.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:768e0e6b0486526a8d78cc883590d25ceffa996b74d03a917a25611383d5b386
|
| 3 |
+
size 171969448
|
config.yaml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
job: extension
|
| 2 |
+
config:
|
| 3 |
+
name: The_Thing
|
| 4 |
+
process:
|
| 5 |
+
- type: sd_trainer
|
| 6 |
+
training_folder: /notebooks/ai-toolkit/output
|
| 7 |
+
device: cuda:0
|
| 8 |
+
trigger_word: The_Thing
|
| 9 |
+
network:
|
| 10 |
+
type: lora
|
| 11 |
+
linear: 16
|
| 12 |
+
linear_alpha: 16
|
| 13 |
+
save:
|
| 14 |
+
dtype: float16
|
| 15 |
+
save_every: 250
|
| 16 |
+
max_step_saves_to_keep: 4
|
| 17 |
+
push_to_hub: true
|
| 18 |
+
hf_repo_id: ayanda13/The_Thing
|
| 19 |
+
hf_private: 'true'
|
| 20 |
+
datasets:
|
| 21 |
+
- folder_path: /notebooks/ai-toolkit/dataset/images
|
| 22 |
+
caption_ext: txt
|
| 23 |
+
caption_dropout_rate: 0.05
|
| 24 |
+
shuffle_tokens: false
|
| 25 |
+
cache_latents_to_disk: true
|
| 26 |
+
resolution:
|
| 27 |
+
- 512
|
| 28 |
+
- 720
|
| 29 |
+
- 768
|
| 30 |
+
- 1024
|
| 31 |
+
- 1088
|
| 32 |
+
train:
|
| 33 |
+
batch_size: 16
|
| 34 |
+
steps: 4000
|
| 35 |
+
gradient_accumulation_steps: 1
|
| 36 |
+
train_unet: true
|
| 37 |
+
train_text_encoder: false
|
| 38 |
+
gradient_checkpointing: true
|
| 39 |
+
noise_scheduler: flowmatch
|
| 40 |
+
optimizer: adamw8bit
|
| 41 |
+
lr: 0.0001
|
| 42 |
+
ema_config:
|
| 43 |
+
use_ema: true
|
| 44 |
+
ema_decay: 0.99
|
| 45 |
+
dtype: bf16
|
| 46 |
+
model:
|
| 47 |
+
name_or_path: /notebooks/ai-toolkit/black-forest-labs/FLUX.1-dev
|
| 48 |
+
is_flux: true
|
| 49 |
+
quantize: true
|
| 50 |
+
sample:
|
| 51 |
+
sampler: flowmatch
|
| 52 |
+
sample_every: 250
|
| 53 |
+
width: 1280
|
| 54 |
+
height: 720
|
| 55 |
+
prompts:
|
| 56 |
+
- The Thing wearing a black and white tuxedo. He's in an office on a bright
|
| 57 |
+
afternoon. [trigger]
|
| 58 |
+
neg: ''
|
| 59 |
+
seed: 42
|
| 60 |
+
walk_seed: true
|
| 61 |
+
guidance_scale: 4
|
| 62 |
+
sample_steps: 30
|
| 63 |
+
meta:
|
| 64 |
+
name: The_Thing
|
| 65 |
+
version: '1.0'
|
| 66 |
+
base_model: black-forest-labs/FLUX.1-dev
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbf0451fd4af4e1efe2d302a08fb4dd7f81c87099a1c7b8ece445f57024a1607
|
| 3 |
+
size 175676612
|
samples/.ipynb_checkpoints/1740323942163__000000000_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740327528027__000000250_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740331115653__000000500_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740334693739__000000750_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740340396248__000001000_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740343953077__000001250_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740347522014__000001500_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740390598607__000002250_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740394168586__000002500_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740412427389__000003500_0-checkpoint.jpg
ADDED
|
samples/.ipynb_checkpoints/1740419466944__000004000_0-checkpoint.jpg
ADDED
|
samples/1740323942163__000000000_0.jpg
ADDED
|
samples/1740327528027__000000250_0.jpg
ADDED
|
samples/1740331115653__000000500_0.jpg
ADDED
|
samples/1740334693739__000000750_0.jpg
ADDED
|
samples/1740340396248__000001000_0.jpg
ADDED
|
samples/1740343953077__000001250_0.jpg
ADDED
|
samples/1740347522014__000001500_0.jpg
ADDED
|
samples/1740351104626__000001750_0.jpg
ADDED
|
samples/1740354675416__000002000_0.jpg
ADDED
|
samples/1740390598607__000002250_0.jpg
ADDED
|
samples/1740394168586__000002500_0.jpg
ADDED
|
samples/1740397743776__000002750_0.jpg
ADDED
|
samples/1740401313501__000003000_0.jpg
ADDED
|
samples/1740404898055__000003250_0.jpg
ADDED
|
samples/1740412427389__000003500_0.jpg
ADDED
|
samples/1740415953522__000003750_0.jpg
ADDED
|
samples/1740419466944__000004000_0.jpg
ADDED
|