Update README.md
Browse files
README.md
CHANGED
|
@@ -40,7 +40,7 @@ from transformers.utils.hub import cached_file
|
|
| 40 |
from pruna_engine.PrunaModel import PrunaModel # Step (1): install and import `pruna-engine` package.
|
| 41 |
|
| 42 |
...
|
| 43 |
-
model_path = cached_file("PrunaAI/
|
| 44 |
smashed_model = PrunaModel.load_model(model_path) # Step (3): load the model.
|
| 45 |
y = smashed_model(prompt="a photo of an astronaut riding a horse on mars", image_height=512, image_width=512)[0] # Step (4): run the model.
|
| 46 |
```
|
|
|
|
| 40 |
from pruna_engine.PrunaModel import PrunaModel # Step (1): install and import `pruna-engine` package.
|
| 41 |
|
| 42 |
...
|
| 43 |
+
model_path = cached_file("PrunaAI/CompVis-stable-diffusion-v1-4-smashed", "model") # Step (2): download the model files at `model_path`.
|
| 44 |
smashed_model = PrunaModel.load_model(model_path) # Step (3): load the model.
|
| 45 |
y = smashed_model(prompt="a photo of an astronaut riding a horse on mars", image_height=512, image_width=512)[0] # Step (4): run the model.
|
| 46 |
```
|