sshh12 commited on
Commit
45c688e
1 Parent(s): c3ec4c5
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ *.png filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ raw/
README.md CHANGED
@@ -1,3 +1,76 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
4
+ dataset: sshh12/planet-textures
5
+ tags:
6
+ - stable-diffusion-xl
7
+ - stable-diffusion-xl-diffusers
8
+ - text-to-image
9
+ - diffusers
10
+ - lora
11
+ - planets
12
+ - space
13
+ - procedural-generation
14
+ inference: false
15
  ---
16
+
17
+ These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were fine-tuned on the sshh12/planet-textures dataset.
18
+
19
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
20
+
21
+ | Prompt | Image |
22
+ | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23
+ | A turquoise-hued gas giant, streaked with swirling white wisps of high-altitude clouds, wrapped in a thin, multicolored ring system | ![img_1](./imgs/img_aturquoise-huedgasgiantstreakedwithswirlingwhitewispsofhigh-altitudecloudswrappedinathinmulticoloredringsystem_ckpt1300_gs20.0_seed100.png) |
24
+ | A barren desert planet, coated in fine rusty-red sand, pockmarked with deep, dark craters, and cloaked in a thin, hazy atmosphere | ![img_2](./imgs/img_abarrendesertplanetcoatedinfinerusty-redsandpockmarkedwithdeepdarkcratersandcloakedinathinhazyatmosphere_ckpt2000_gs10.0_seed0.png) |
25
+ | A small, icy moon, encased in a shell of pure white ice and dust, covered with intricate patterns of frosty fissures | ![img_3](./imgs/img_asmallicymoonencasedinashellofpurewhiteiceanddustcoveredwithintricatepatternsoffrostyfissures_ckpt2000_gs10.0_seed0.png) |
26
+
27
+ ## 🧨 Diffusers Usage
28
+
29
+ ```py
30
+ import torch
31
+ from diffusers import DiffusionPipeline, AutoencoderKL
32
+
33
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
34
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
35
+ pipe.load_lora_weights("sshh12/sdxl-lora-planet-textures")
36
+ pipe.to("cuda")
37
+
38
+ prompt = "A dwarf planet exhibiting a striking purple color, with a surface peppered with craters and towering ice formations"
39
+ negative_prompt = 'blurry, fuzzy, low resolution, cartoon, painting'
40
+
41
+ image = pipe(prompt=prompt, negative_prompt=negative_prompt, width=1024, height=512).images[0]
42
+ image
43
+ ```
44
+
45
+ ## Training
46
+
47
+ GitHub: https://github.com/sshh12/planet-diffusion
48
+
49
+ ```py
50
+ MODEL_NAME="stabilityai/stable-diffusion-xl-base-1.0"
51
+ DATASET_NAME="sshh12/planet-textures"
52
+
53
+ !accelerate launch v2/train_text_to_image_lora_sdxl.py \
54
+ --pretrained_model_name_or_path="$MODEL_NAME" \
55
+ --pretrained_vae_model_name_or_path="madebyollin/sdxl-vae-fp16-fix" \
56
+ --dataset_name="$DATASET_NAME" \
57
+ --caption_column="text" \
58
+ --width=1024 \
59
+ --height=512 \
60
+ --random_hflip \
61
+ --random_vflip \
62
+ --mixed_precision="fp16" \
63
+ --use_8bit_adam \
64
+ --train_batch_size=1 \
65
+ --gradient_accumulation_steps=2 \
66
+ --num_train_epochs=500 \
67
+ --checkpointing_steps=100 \
68
+ --learning_rate=1e-05 \
69
+ --lr_scheduler="constant" \
70
+ --lr_warmup_steps=0 \
71
+ --seed=0 \
72
+ --validation_epochs=5 \
73
+ --validation_prompt_file="v2/validation_prompts.txt" \
74
+ --enable_xformers_memory_efficient_attention \
75
+ --report_to="wandb"
76
+ ```
checkpoint-1000/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0a2896d888dee5ec380e075a014b0e4e0580421d950d11e7a725155a1aea471
3
+ size 23664755
checkpoint-1100/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf85315ac938021c0f5c58a89d5d44ee3dd71cd22bf6f5fb793dbdaa4c0686ca
3
+ size 23664755
checkpoint-1200/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db0295defb533bdae82ed19b4b09992503d4a83d6d64db6abd7e5509d90e8b7c
3
+ size 23664755
checkpoint-1300/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6612209a2b4348c24ee943cd2e12d229318fca62560fdf6ebd82267cc180f36
3
+ size 23664755
checkpoint-1400/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:285c58692e251f90aa25b307cf55c344e0e360a89d996aa4442c18d81f6566b9
3
+ size 23664755
checkpoint-1500/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:578abc2cf48423eeef9a421f4e07dad41e0773a6f5e6e0862688cc3821683b1e
3
+ size 23664755
checkpoint-1600/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27de9dbed11c13f32f9f03ec1cc7e5edca67a0fab29e753f674c7414aab547ea
3
+ size 23664755
checkpoint-1700/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1678191e09fc34d5956f577475e2e5851a1f85acdceab3e60f2c8711aae30aae
3
+ size 23664755
checkpoint-1800/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7523f8e886f453d330ccb475a893a1c7d0949101f7b9ca688203e89dd0c51be6
3
+ size 23664755
checkpoint-1900/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7727d08e4337bffde82a6210545378346df29797cd6eae240a5cfd354fa9712
3
+ size 23664755
checkpoint-2000/pytorch_lora_weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b16651cbb014672dda4ae0f5bb0dfa0f965581ab549d44b22878b30e0b02b92f
3
+ size 23664755
imgs/img_abarrendesertplanetcoatedinfinerusty-redsandpockmarkedwithdeepdarkcratersandcloakedinathinhazyatmosphere_ckpt2000_gs10.0_seed0.png ADDED

Git LFS Details

  • SHA256: 8df21476282fc01697c1bf6d8362767e377add491f932c23949c77d77b45a201
  • Pointer size: 131 Bytes
  • Size of remote file: 583 kB
imgs/img_asmallicymoonencasedinashellofpurewhiteiceanddustcoveredwithintricatepatternsoffrostyfissures_ckpt2000_gs10.0_seed0.png ADDED

Git LFS Details

  • SHA256: 9d9274828a3dc766a88fc2d5f5e1675681ee216b4d35217a9be0d9234aa10ccd
  • Pointer size: 131 Bytes
  • Size of remote file: 711 kB
imgs/img_aturquoise-huedgasgiantstreakedwithswirlingwhitewispsofhigh-altitudecloudswrappedinathinmulticoloredringsystem_ckpt1300_gs20.0_seed100.png ADDED

Git LFS Details

  • SHA256: b6e4633cd1e01ab327ad44c741fbfa9fd12967b96c7a01bc535e8821e9c37630
  • Pointer size: 131 Bytes
  • Size of remote file: 477 kB