mixy89 commited on
Commit
894c4ee
1 Parent(s): 95661e9

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: creativeml-openrail-m
4
+ base_model: SG161222/Realistic_Vision_V4.0
5
+ datasets:
6
+ - recastai/LAION-art-EN-improved-captions
7
+ tags:
8
+ - bksdm
9
+ - bksdm-ttiny
10
+ - stable-diffusion
11
+ - stable-diffusion-diffusers
12
+ - text-to-image
13
+ - diffusers
14
+ inference: true
15
+ ---
16
+
17
+ # Text-to-image Distillation
18
+
19
+ This pipeline was distilled from **SG161222/Realistic_Vision_V4.0** on a Subset of **recastai/LAION-art-EN-improved-captions** dataset. Below are some example images generated with the finetuned pipeline using the following prompts: ['Portrait of a pretty girl']:
20
+
21
+ ![val_imgs_grid](./val_imgs_grid.png)
22
+
23
+
24
+ This Pipeline is based upon [the paper](https://arxiv.org/pdf/2305.15798.pdf). Training Code can be found [here](https://github.com/segmind/BKSDM).
25
+
26
+ ## Pipeline usage
27
+
28
+ You can use the pipeline like so:
29
+
30
+ ```python
31
+ from diffusers import DiffusionPipeline
32
+ import torch
33
+
34
+ pipeline = DiffusionPipeline.from_pretrained("Warlord-K/BKSDM-Tiny-125K", torch_dtype=torch.float16)
35
+ #Load LoRA finetune
36
+ pipeline.load_lora_weights("segmind/tiny_lora_mxtun3_style", weight_name="sd15_tiny_mxtun3_style_lora.safetensors")
37
+ prompt = "Portrait of a pretty girl"
38
+ image = pipeline(prompt).images[0]
39
+ image.save("my_image.png")
40
+ ```
41
+
42
+ ## Training info
43
+
44
+ These are the key hyperparameters used during training:
45
+
46
+ * Steps: 125000
47
+ * Learning rate: 1e-4
48
+ * Batch size: 32
49
+ * Gradient accumulation steps: 4
50
+ * Image resolution: 512
51
+ * Mixed-precision: fp16
52
+