Prgckwb commited on
Commit
45f763a
1 Parent(s): 70275d5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -40,6 +40,7 @@ pip install diffusers transformers accelerate scipy safetensors
40
  The image can then be generated with the following script.
41
 
42
  ```python
 
43
  from diffusers import StableDiffusionPipeline
44
 
45
  keyword = "trpfrog"
@@ -49,7 +50,7 @@ model_id = "Prgckwb/trpfrog-diffusion"
49
 
50
  pipe = StableDiffusionPipeline.from_pretrained(
51
  model_id, torch_dtype=torch.float16
52
- ).to(device)
53
 
54
  image = pipe(prompt).images[0]
55
  image.save("trpfrog.jpg")
 
40
  The image can then be generated with the following script.
41
 
42
  ```python
43
+ import torch
44
  from diffusers import StableDiffusionPipeline
45
 
46
  keyword = "trpfrog"
 
50
 
51
  pipe = StableDiffusionPipeline.from_pretrained(
52
  model_id, torch_dtype=torch.float16
53
+ ).to("cuda")
54
 
55
  image = pipe(prompt).images[0]
56
  image.save("trpfrog.jpg")