Instructions to use CompVis/ldm-super-resolution-4x-openimages with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CompVis/ldm-super-resolution-4x-openimages with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CompVis/ldm-super-resolution-4x-openimages", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ tags:
|
|
| 24 |
### Inference with a pipeline
|
| 25 |
|
| 26 |
```python
|
| 27 |
-
!pip install git+https://github.com/
|
| 28 |
|
| 29 |
import requests
|
| 30 |
from PIL import Image
|
|
|
|
| 24 |
### Inference with a pipeline
|
| 25 |
|
| 26 |
```python
|
| 27 |
+
!pip install git+https://github.com/huggingface/diffusers.git
|
| 28 |
|
| 29 |
import requests
|
| 30 |
from PIL import Image
|