dtthanh commited on
Commit
b5148bb
·
verified ·
1 Parent(s): 4d2e90f

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -29
README.md CHANGED
@@ -1,46 +1,63 @@
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: VLU
20
  ---
21
 
22
- # Vlu_Logo
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 `VLU` 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('dtthanh/vlu_logo', 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)
 
 
 
1
  ---
 
 
 
 
 
2
  tags:
3
+ - text-to-image
 
4
  - lora
5
+ - diffusers
6
+ - flux
7
+ base_model: black-forest-labs/FLUX.1-dev
8
+ license: creativeml-openrail-m
9
+ library_name: diffusers
 
 
 
 
10
  ---
11
 
12
+ # Van Lang University Logo
13
 
14
+ LoRA Adapter for [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) trained on 15 pictures of Van Long University Logo with [ai-toolkit](https://github.com/ostris/ai-toolkit/tree/main)
15
 
 
16
 
17
+ ## Trigger words
18
+ You should use `VLU` to trigger the image generation. The trigger phrase `VLU Logo with 'Van Lang University' text printed on [material].
19
 
20
 
21
+ # Model Details
 
22
 
23
+ **Some Examples**
24
 
25
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(1).jpg" width=512>
26
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(2).jpg" width=512>
27
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(3).jpg" width=512>
28
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(1).png" width=512>
29
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(2).png" width=512>
30
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(3).png" width=512>
31
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(4).png" width=512>
32
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(4).png" width=512>
33
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(6).png" width=512>
34
+ <img src="https://huggingface.co/dtthanh/vlu_logo/resolve/main/VLU_logo%20(7).png" width=512>
35
 
36
+ # Usage
 
 
37
 
38
+ With diffusers package
39
+ *Note: FLUX uses ~70GBvram when loaded directly with diffusers*
40
+ *Note: Recommended to load at ~70% scale for best results*
41
+
42
+ ```python
43
+ from diffusers import DiffusionPipeline
44
+
45
+ pipeline = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
46
  pipeline.load_lora_weights('dtthanh/vlu_logo', weight_name='lora.safetensors')
47
+ pipeline.to("cuda")
48
+
49
+ prompt = "a photo of a female student with red polo on that there is VLU Logo with 'Van Lang University' text printed. backgound is a class."
50
+
51
+ out = pipeline(
52
+ prompt=prompt,
53
+ guidance_scale=3.5,
54
+ num_inference_steps=20,
55
+ cross_attention_kwargs={"scale": 0.7}
56
+ ).images[0]
57
+
58
+ out.save("vlulogo.png")
59
  ```
60
 
61
+ # Additional Details
62
+
63
+ Please see base model page [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) for all details on appropriate usage, licensing, and more.