Run this model with HF Jobs
Run channudam/stable-diffusion-khm-53 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/channudam/stable-diffusion-khm-53. 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/channudam/stable-diffusion-khm-53 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 channudam/stable-diffusion-khm-53 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use channudam/stable-diffusion-khm-53 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("channudam/stable-diffusion-khm-53", 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
Update README.md
Browse files3 unmodified lines45678910111213141516173 unmodified lines- kmpipeline_tag: text-to-image---## Model Details### Model DescriptionThis project focuses on generating images from Khmer text. Inspired by the Stable Diffusion architecture, we enhance a base model called channudam/unet2dcon-khm-35 by integrating key components from Stable Diffusion on top of it. This approach helps improve the quality and control of the generated images and also more flexibility on downstream tasks.- **Developed by:** Mr. Channudam Ray- **Funded by:** Factory.io- **Model type:** StableDiffusion- **Language:** Khmer Central3 unmodified lines456789101112131415161718192021222324252627282930313233343536373839404142433 unmodified lines- kmpipeline_tag: text-to-image---## Model DescriptionThis project explores Khmer text-to-image generation, inspired by the architecture of Stable Diffusion. It builds upon the base model [`channudam/unet2dcon-khm-35`](https://huggingface.co/channudam/unet2dcon-khm-35) by integrating key components from the Stable Diffusion framework. This setup enhances image quality, provides better control, and offers more flexibility for downstream tasks.- **Developed by:** Mr. Channudam Ray- **Funded by:** Factory.io- **Model Type:** Stable Diffusion-based- **Language:** Khmer (Central dialect)## Fine-TuningThis is a base model and is intended to be fine-tuned for specific tasks or datasets. The model was trained on images with a resolution of **128×64**, but this can be adjusted during fine-tuning to match your desired output size.For best results, it is recommended to fine-tune the following three main components rather than just the core UNet model:- **Text Encoder** – [`RobertaModel`]- **Variational Autoencoder** – [`AutoencoderKL`]- **Image Generation Model** – [`UNet2DConditionModel`]## Usage (with GPU)```pythonfrom diffusers import StableDiffusionPipelinefrom khmernltk import word_tokenizeimport matplotlib.pyplot as pltfrom PIL import Imageimport torchpipe = StableDiffusionPipeline.from_pretrained("stable_diffusion_v1",torch_dtype=torch.float16,).to("cuda")images = pipe("បាត់ដំបង", guidance_scale=2).images[0]plt.imshow(images)plt.show()
README.md+33-7