Text-to-Image
Diffusers
PyTorch
Safetensors
StableDiffusionPipeline
clip
stable diffusion
comics
text to image
Instructions to use rowenac/vintagechinesecomics with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rowenac/vintagechinesecomics with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("rowenac/vintagechinesecomics", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download react app/client/src/Gallery.css from rowenac/vintagechinesecomics: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/rowenac/vintagechinesecomics/resolve/main/react%20app/client/src/Gallery.css
- Command line
-
hf download 'hf://rowenac/vintagechinesecomics/react app/client/src/Gallery.css'
-
curl -L -o Gallery.css https://huggingface.co/rowenac/vintagechinesecomics/resolve/main/react%20app/client/src/Gallery.css
1.08 kB
| /* Gallery.css */ | |
| /* Styling for the gallery container */ | |
| .gallery-container { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(20%, 1fr)); /* 5 images in a row */ | |
| grid-gap: 10px; /* Adjust the gap between images as needed */ | |
| } | |
| /* Styling for individual gallery images */ | |
| .gallery-image { | |
| width: 100%; | |
| max-height: 100%; /* Ensure images maintain aspect ratio */ | |
| object-fit: cover; /* Resize images to cover the container */ | |
| cursor: pointer; | |
| /* Add any other image styling you want here */ | |
| } | |
| /* Styling for the modal */ | |
| .modal { | |
| display: block; | |
| position: fixed; | |
| z-index: 1; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */ | |
| overflow: auto; | |
| } | |
| /* Styling for the close button */ | |
| .close-button { | |
| position: absolute; | |
| top: 15px; | |
| right: 15px; | |
| font-size: 30px; | |
| color: white; | |
| cursor: pointer; | |
| } | |
| /* Styling for the full-size image in the modal */ | |
| .modal img { | |
| display: block; | |
| margin: 0 auto; | |
| max-width: 100%; | |
| max-height: 100%; | |
| padding: 20px; | |
| } | |