Run this model with HF Jobs
Run Dipl0/pepe-diffuser 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/Dipl0/pepe-diffuser. 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/Dipl0/pepe-diffuser 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 Dipl0/pepe-diffuser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Dipl0/pepe-diffuser with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Dipl0/pepe-diffuser", 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
Clean model card
Browse files123456789101112131415161718192021---library_name: diffuserspipeline_tag: text-to-imagetags:- pepe---# How to use***To prompt you can use the following code***```pythonfrom diffusers import StableDiffusionPipelinemodel_path = "Dipl0/pepe-diffuser"pipe = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)pipe.to("cuda")prompt = "pepe surfing on the moon"image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]image.save(prompt.replace(" ","_") + ".png")```123456789101112131415161718192021222324252627282930313233343536373839404142434445---library_name: diffuserspipeline_tag: text-to-imagebase_model: stabilityai/stable-diffusion-2datasets:- Dipl0/pepe_image_stable_difftags:- stable-diffusion- text-to-image- pepe---# 🐸 Pepe DiffuserStable Diffusion 2 fine-tuné sur des images de Pepe the Frog.**Démo :** [Pepe Diffuser Space](https://huggingface.co/spaces/Dipl0/pepe_generator)## Utilisation```pythonimport torchfrom diffusers import DPMSolverMultistepScheduler, StableDiffusionPipelinepipe = StableDiffusionPipeline.from_pretrained("Dipl0/pepe-diffuser", torch_dtype=torch.float16)pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, algorithm_type="dpmsolver++", use_karras_sigmas=True)pipe.to("cuda")image = pipe("pepe the frog surfing on the moon", num_inference_steps=22, guidance_scale=7).images[0]image.save("pepe.png")```Commencer le prompt par `pepe the frog` donne les meilleurs résultats.## Entraînement- **Modèle de base :** [`stabilityai/stable-diffusion-2`](https://huggingface.co/stabilityai/stable-diffusion-2)- **Données :** [`Dipl0/pepe_image_stable_diff`](https://huggingface.co/datasets/Dipl0/pepe_image_stable_diff)- **Script :** `train_text_to_image` de diffusers (février 2023)## LimitesProjet perso et expérimental. Les images d'entraînement viennent de mèmes internet : le modèle peut reproduire leur humour et leurs clichés.
README.md+37-13