Text-to-Image
Diffusers
English
jeveration
image-to-image
depth-estimation
image-segmentation
modular-diffusers
Run this model with HF Jobs
Run OzzyGT/jeveration_custom_blocks on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/OzzyGT/jeveration_custom_blocks. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OzzyGT/jeveration_custom_blocks on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use OzzyGT/jeveration_custom_blocks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/jeveration_custom_blocks with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/jeveration_custom_blocks", 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,981 Bytes
c60a1b3 | 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | # Copyright 2026 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0. See the LICENSE file in this repository.
from transformers import AutoTokenizer, CLIPTextModel, CLIPTokenizer
from diffusers.modular_pipelines.modular_pipeline_utils import ComponentSpec
from .image_decoder_jeveration import JeverationImageDecoder
from .transformer_jeveration import JeverationTransformer
# The converted weights. The model classes come from this repo, so the weights repo holds no code. Load from elsewhere
# with `pipe.load_components(pretrained_model_name_or_path=...)`.
JEVERATION_WEIGHTS_REPO = "OzzyGT/jeveration_diffusers"
def transformer_spec() -> ComponentSpec:
return ComponentSpec(
"transformer",
JeverationTransformer,
pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO,
subfolder="transformer",
)
def image_decoder_spec() -> ComponentSpec:
return ComponentSpec(
"image_decoder",
JeverationImageDecoder,
pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO,
subfolder="image_decoder",
)
def source_image_decoder_spec() -> ComponentSpec:
return ComponentSpec(
"source_image_decoder",
JeverationImageDecoder,
pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO,
subfolder="source_image_decoder",
)
def text_encoder_spec() -> ComponentSpec:
return ComponentSpec(
"text_encoder", CLIPTextModel, pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, subfolder="text_encoder"
)
def tokenizer_spec() -> ComponentSpec:
return ComponentSpec(
"tokenizer", AutoTokenizer, pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, subfolder="tokenizer"
)
def clip_tokenizer_spec() -> ComponentSpec:
return ComponentSpec(
"clip_tokenizer",
CLIPTokenizer,
pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO,
subfolder="clip_tokenizer",
)
|