patrickvonplaten commited on
Commit
563f951
1 Parent(s): 29b6ee6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -8
README.md CHANGED
@@ -54,12 +54,6 @@ We recommend using [🤗's Diffusers library](https://github.com/huggingface/dif
54
  pip install --upgrade diffusers transformers scipy
55
  ```
56
 
57
- Run this command to log in with your HF Hub token if you haven't before:
58
-
59
- ```bash
60
- huggingface-cli login
61
- ```
62
-
63
  Running the pipeline with the default PNDM scheduler:
64
 
65
  ```python
@@ -71,7 +65,7 @@ model_id = "CompVis/stable-diffusion-v1-3"
71
  device = "cuda"
72
 
73
 
74
- pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=True)
75
  pipe = pipe.to(device)
76
 
77
  prompt = "a photo of an astronaut riding a horse on mars"
@@ -88,7 +82,7 @@ If you are limited by GPU memory and have less than 10GB of GPU RAM available, p
88
  ```py
89
  import torch
90
 
91
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16", use_auth_token=True)
92
  pipe = pipe.to(device)
93
 
94
  prompt = "a photo of an astronaut riding a horse on mars"
54
  pip install --upgrade diffusers transformers scipy
55
  ```
56
 
 
 
 
 
 
 
57
  Running the pipeline with the default PNDM scheduler:
58
 
59
  ```python
65
  device = "cuda"
66
 
67
 
68
+ pipe = StableDiffusionPipeline.from_pretrained(model_id)
69
  pipe = pipe.to(device)
70
 
71
  prompt = "a photo of an astronaut riding a horse on mars"
82
  ```py
83
  import torch
84
 
85
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
86
  pipe = pipe.to(device)
87
 
88
  prompt = "a photo of an astronaut riding a horse on mars"