vcollos commited on
Commit
0b1a24e
·
verified ·
1 Parent(s): 33ca252

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +30 -22
  2. config.yaml +4 -4
  3. lora.safetensors +2 -2
README.md CHANGED
@@ -1,38 +1,46 @@
1
  ---
 
 
 
 
 
2
  tags:
3
- - text-to-image
4
- - lora
5
  - diffusers
6
- - template:diffusion-lora
7
- widget:
8
- - text: portrait of José Alves with black suit in gray blurred background
9
- output:
10
- url: images/jalves.jpeg
11
- base_model: black-forest-labs/FLUX.1-dev
12
- instance_prompt: José Alves, Pedro, Júlio, Clóvis
13
- license: mit
 
 
14
  ---
15
- # Jalves
16
-
17
- <Gallery />
18
 
19
- ## Model description
20
 
21
- Inferências dos Diretores da Uniodonto do Brasil
22
 
23
- ## Trigger words
24
 
25
- You should use `José Alves` to trigger the image generation.
26
 
27
- You should use `Pedro` to trigger the image generation.
28
 
 
29
  You should use `Júlio` to trigger the image generation.
30
 
31
- You should use `Clóvis` to trigger the image generation.
32
 
 
33
 
34
- ## Download model
 
 
35
 
36
- Weights for this model are available in Safetensors format.
 
 
 
37
 
38
- [Download](/Collos/uniodonto/tree/main) them in the Files & versions tab.
 
1
  ---
2
+ license: other
3
+ license_name: flux-1-dev-non-commercial-license
4
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
5
+ language:
6
+ - en
7
  tags:
8
+ - flux
 
9
  - diffusers
10
+ - lora
11
+ - replicate
12
+ base_model: "black-forest-labs/FLUX.1-dev"
13
+ pipeline_tag: text-to-image
14
+ # widget:
15
+ # - text: >-
16
+ # prompt
17
+ # output:
18
+ # url: https://...
19
+ instance_prompt: Júlio
20
  ---
 
 
 
21
 
22
+ # Uniodonto
23
 
24
+ <Gallery />
25
 
26
+ Trained on Replicate using:
27
 
28
+ https://replicate.com/ostris/flux-dev-lora-trainer/train
29
 
 
30
 
31
+ ## Trigger words
32
  You should use `Júlio` to trigger the image generation.
33
 
 
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('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
42
+ pipeline.load_lora_weights('Collos/uniodonto', weight_name='lora.safetensors')
43
+ image = pipeline('your prompt').images[0]
44
+ ```
45
 
46
+ 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)
config.yaml CHANGED
@@ -5,14 +5,14 @@ config:
5
  - type: custom_sd_trainer
6
  training_folder: output
7
  device: cuda:0
8
- trigger_word: "Jos\xE9 Alves"
9
  network:
10
  type: lora
11
  linear: 16
12
  linear_alpha: 16
13
  save:
14
  dtype: float16
15
- save_every: 2001
16
  max_step_saves_to_keep: 1
17
  datasets:
18
  - folder_path: input_images
@@ -25,7 +25,7 @@ config:
25
  - 1024
26
  train:
27
  batch_size: 1
28
- steps: 2000
29
  gradient_accumulation_steps: 1
30
  train_unet: true
31
  train_text_encoder: false
@@ -44,7 +44,7 @@ config:
44
  quantize: true
45
  sample:
46
  sampler: flowmatch
47
- sample_every: 2001
48
  width: 1024
49
  height: 1024
50
  prompts: []
 
5
  - type: custom_sd_trainer
6
  training_folder: output
7
  device: cuda:0
8
+ trigger_word: "J\xFAlio"
9
  network:
10
  type: lora
11
  linear: 16
12
  linear_alpha: 16
13
  save:
14
  dtype: float16
15
+ save_every: 3001
16
  max_step_saves_to_keep: 1
17
  datasets:
18
  - folder_path: input_images
 
25
  - 1024
26
  train:
27
  batch_size: 1
28
+ steps: 3000
29
  gradient_accumulation_steps: 1
30
  train_unet: true
31
  train_text_encoder: false
 
44
  quantize: true
45
  sample:
46
  sampler: flowmatch
47
+ sample_every: 3001
48
  width: 1024
49
  height: 1024
50
  prompts: []
lora.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3fccd46ee885df9b2712bb84798147edfd77c53706db20cbb80cc34221eb1653
3
- size 171969440
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c948b98d3385509bf8bc2e75c81bfea7a24f05fa0d86ccefa2b86c9e9ec13935
3
+ size 171969432