nikad commited on
Commit
c9d456f
1 Parent(s): f966a55

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ image_0.png filter=lfs diff=lfs merge=lfs -text
37
+ image_1.png filter=lfs diff=lfs merge=lfs -text
38
+ image_2.png filter=lfs diff=lfs merge=lfs -text
39
+ image_3.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: creativeml-openrail-m
4
+ base_model: stabilityai/stable-diffusion-xl-base-0.9
5
+ instance_prompt: a photo of sks dog
6
+ tags:
7
+ - stable-diffusion-xl
8
+ - stable-diffusion-xl-diffusers
9
+ - text-to-image
10
+ - diffusers
11
+ - lora
12
+ inference: true
13
+ ---
14
+
15
+ # LoRA DreamBooth - nikad/lora-trained-xl
16
+
17
+ These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-0.9. The weights were trained on a photo of sks dog using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following.
18
+
19
+ ![img_0](./image_0.png)
20
+ ![img_1](./image_1.png)
21
+ ![img_2](./image_2.png)
22
+ ![img_3](./image_3.png)
23
+
24
+
25
+ LoRA for the text encoder was enabled: False.
checkpoint-500/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a0815cc0a43a19d932ad20f259e83a5c04884e5d03ecd434528313f01fe7df8
3
+ size 47392445
checkpoint-500/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31bc0ee66a9b3e8c7c5c4c9db3d0d001222ea8d607cecd1fa073ae59dd690321
3
+ size 23664755
checkpoint-500/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9af32e2f52b0b7904650c23d3f3945dadf834d825854e188e76c0a47de4b2dbc
3
+ size 14599
checkpoint-500/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3f196a54202bb4ba1220e8c59f42f9cda0702d68ea83147d814c2fb2f36b8f2
3
+ size 557
checkpoint-500/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62783ff6f0ae2c2ccc177b097e430c03940c5e70c38a191df273c5cf7ab1227c
3
+ size 563
image_0.png ADDED

Git LFS Details

  • SHA256: 3f9edbda1aee9595938e7ffe09699871eecca98e815096e7548e05eb537c0aea
  • Pointer size: 132 Bytes
  • Size of remote file: 1.77 MB
image_1.png ADDED

Git LFS Details

  • SHA256: 570b11ed2cd80f6f42f8b2d2620c11d9f4ffa52ec11547b064bbf4c454b8dedc
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
image_2.png ADDED

Git LFS Details

  • SHA256: 4e6de114a691f55033fac29777bce77ef97a0b8885515fc0c5e5b3abb377d32d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
image_3.png ADDED

Git LFS Details

  • SHA256: 79a1aedb1a43e52a64c4450fbc6d20d7f561e02d6124b5b07ff8ea14879d44a8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.68 MB
inference.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub.repocard import RepoCard
2
+ from diffusers import DiffusionPipeline
3
+ import torch
4
+
5
+ lora_model_id = <"lora-sdxl-dreambooth-id">
6
+ card = RepoCard.load(lora_model_id)
7
+ base_model_id = card.data.to_dict()["base_model"]
8
+
9
+ pipe = DiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16)
10
+ pipe = pipe.to("cuda")
11
+ pipe.load_lora_weights(lora_model_id)
12
+ image = pipe("A picture of a sks dog in a bucket", num_inference_steps=25).images[0]
13
+ image.save("sks_dog.png")
pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31bc0ee66a9b3e8c7c5c4c9db3d0d001222ea8d607cecd1fa073ae59dd690321
3
+ size 23664755