Instructions to use StonyBrook-CVLab/PixCell-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use StonyBrook-CVLab/PixCell-256 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("StonyBrook-CVLab/PixCell-256", 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
|
@@ -16,9 +16,9 @@ device = torch.device('cuda')
|
|
| 16 |
sd3_vae = AutoencoderKL.from_pretrained("stabilityai/stable-diffusion-3.5-large", subfolder="vae")
|
| 17 |
|
| 18 |
pipeline = DiffusionPipeline.from_pretrained(
|
| 19 |
-
"StonyBrook-CVLab/
|
| 20 |
vae=sd3_vae,
|
| 21 |
-
custom_pipeline="StonyBrook-CVLab/
|
| 22 |
trust_remote_code=True,
|
| 23 |
)
|
| 24 |
|
|
@@ -66,7 +66,7 @@ from PIL import Image
|
|
| 66 |
from huggingface_hub import hf_hub_download
|
| 67 |
|
| 68 |
# This is an example image we provide
|
| 69 |
-
path = hf_hub_download(repo_id="StonyBrook-CVLab/
|
| 70 |
image = Image.open(path)
|
| 71 |
|
| 72 |
# Extract UNI from random patches in the image
|
|
|
|
| 16 |
sd3_vae = AutoencoderKL.from_pretrained("stabilityai/stable-diffusion-3.5-large", subfolder="vae")
|
| 17 |
|
| 18 |
pipeline = DiffusionPipeline.from_pretrained(
|
| 19 |
+
"StonyBrook-CVLab/PixCell-256",
|
| 20 |
vae=sd3_vae,
|
| 21 |
+
custom_pipeline="StonyBrook-CVLab/PixCell-pipeline",
|
| 22 |
trust_remote_code=True,
|
| 23 |
)
|
| 24 |
|
|
|
|
| 66 |
from huggingface_hub import hf_hub_download
|
| 67 |
|
| 68 |
# This is an example image we provide
|
| 69 |
+
path = hf_hub_download(repo_id="StonyBrook-CVLab/PixCell-256", filename="test_image.jpg")
|
| 70 |
image = Image.open(path)
|
| 71 |
|
| 72 |
# Extract UNI from random patches in the image
|