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
File size: 1,075 Bytes
803f9b1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | /* 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;
}
|