Diffusers
Safetensors
takuoko commited on
Commit
6ce077c
·
1 Parent(s): aa051d2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -4
README.md CHANGED
@@ -31,13 +31,15 @@ checkpoint = 'takuoko/tiny_sd_xl_pokemon_blip'
31
  prompt = 'a picture of a pink and yellow pokemon with a sword'
32
 
33
  unet = UNet2DConditionModel.from_pretrained(
34
- checkpoint, torch_dtype=torch.float16)
 
35
  vae = AutoencoderKL.from_pretrained(
36
  'madebyollin/sdxl-vae-fp16-fix',
37
- torch_dtype=torch.float16,
38
  )
39
  pipe = DiffusionPipeline.from_pretrained(
40
- 'stabilityai/stable-diffusion-xl-base-1.0', unet=unet, vae=vae, torch_dtype=torch.float16)
 
41
  pipe.to('cuda')
42
 
43
  image = pipe(
@@ -49,6 +51,6 @@ image.save('demo.png')
49
 
50
  # Example result
51
 
52
- prompt = 'robotic cat with wings'
53
 
54
  ![image](demo.png)
 
31
  prompt = 'a picture of a pink and yellow pokemon with a sword'
32
 
33
  unet = UNet2DConditionModel.from_pretrained(
34
+ checkpoint, torch_dtype=torch.bfloat16
35
+ )
36
  vae = AutoencoderKL.from_pretrained(
37
  'madebyollin/sdxl-vae-fp16-fix',
38
+ torch_dtype=torch.bfloat16,
39
  )
40
  pipe = DiffusionPipeline.from_pretrained(
41
+ 'stabilityai/stable-diffusion-xl-base-1.0', unet=unet, vae=vae, torch_dtype=torch.bfloat16
42
+ )
43
  pipe.to('cuda')
44
 
45
  image = pipe(
 
51
 
52
  # Example result
53
 
54
+ prompt = 'a picture of a pink and yellow pokemon with a sword'
55
 
56
  ![image](demo.png)