aakashs commited on
Commit
83dd889
1 Parent(s): 3aa9e0a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -2
README.md CHANGED
@@ -7,13 +7,66 @@ tags:
7
 
8
  ![image/gif](https://cdn-uploads.huggingface.co/production/uploads/637a6daf7ce76c3b83497ea2/ux_sZKB9snVPsKRT1TzfG.gif)
9
 
 
 
 
 
 
 
 
 
10
  # Model Description
11
  - **Developed by**: Natural Synthetics Inc.
12
  - **Model type**: Diffusion-based text-to-image generative model
13
  - **License**: CreativeML Open RAIL++-M License
14
- - **Model Description**: This is a model that can be used to generate and modify images based on text prompts. It is a Latent Diffusion Model that uses two fixed, pretrained text encoders (OpenCLIP-ViT/G and CLIP-ViT/L).
15
  - **Resources for more information**: Check out our [GitHub Repository](https://github.com/hotshotco/hotshot-xl).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
 
17
 
18
  # Limitations and Bias
19
  ## Limitations
@@ -23,4 +76,4 @@ tags:
23
  - Faces and people in general may not be generated properly.
24
 
25
  ## Bias
26
- While the capabilities of video generation models are impressive, they can also reinforce or exacerbate social biases.
 
7
 
8
  ![image/gif](https://cdn-uploads.huggingface.co/production/uploads/637a6daf7ce76c3b83497ea2/ux_sZKB9snVPsKRT1TzfG.gif)
9
 
10
+ <hr>
11
+
12
+ # Overview
13
+ SDXL-512 is a checkpoint fine-tuned from SDXL 1.0 that is designed to generate higher-fidelity images at and around the 512x512 resolution. The model has been fine-tuned using a learning rate of 1e-6 over 7000 steps with a batch size of 64 on a curated dataset of multiple aspect ratios. alternating low and high resolution batches (per aspect ratio) so as not to impair the base model's existing performance at higher resolution.
14
+ - **Use it with [Hotshot-XL](https://huggingface.co/hotshotco/Hotshot-XL) (recommended)**
15
+
16
+ <hr>
17
+
18
  # Model Description
19
  - **Developed by**: Natural Synthetics Inc.
20
  - **Model type**: Diffusion-based text-to-image generative model
21
  - **License**: CreativeML Open RAIL++-M License
22
+ - **Model Description**: This is a model that can be used to generate and modify higher-fidelity images at and around the 512x512 resolution.
23
  - **Resources for more information**: Check out our [GitHub Repository](https://github.com/hotshotco/hotshot-xl).
24
+ - **Finetuned from model**: [Stable Diffusion XL 1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0)
25
+
26
+ <hr>
27
+
28
+ # 🧨 Diffusers
29
+
30
+ Make sure to upgrade diffusers to >= 0.18.2:
31
+ ```
32
+ pip install diffusers --upgrade
33
+ ```
34
+
35
+ In addition make sure to install `transformers`, `safetensors`, `accelerate` as well as the invisible watermark:
36
+ ```
37
+ pip install invisible_watermark transformers accelerate safetensors
38
+ ```
39
+
40
+ Running the pipeline (if you don't swap the scheduler it will run with the default **EulerDiscreteScheduler** in this example we are swapping it to **EulerAncestralDiscreteScheduler**:
41
+ ```py
42
+ import torch
43
+ from torch import autocast
44
+ from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
45
+ model = "hotshotco/SDXL-512"
46
+ pipe = StableDiffusionXLPipeline.from_pretrained(
47
+ model,
48
+ torch_dtype=torch.float16,
49
+ use_safetensors=True,
50
+ variant="fp16"
51
+ )
52
+ pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
53
+ pipe.to('cuda')
54
+ prompt = "a woman laughing"
55
+ negative_prompt = ""
56
+ image = pipe(
57
+ prompt,
58
+ negative_prompt=negative_prompt,
59
+ width=512,
60
+ height=512,
61
+ guidance_scale=12,
62
+ target_size=(1024,1024),
63
+ original_size=(4096,4096),
64
+ num_inference_steps=50
65
+ ).images[0]
66
+ image.save("woman_laughing.png")
67
+ ```
68
 
69
+ <hr>
70
 
71
  # Limitations and Bias
72
  ## Limitations
 
76
  - Faces and people in general may not be generated properly.
77
 
78
  ## Bias
79
+ While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.