Downloads · 30 days
4
3% of all-time downloads
jffacevedo/pxla_trained_model
pxla_trained_model is a text-to-image model from jffacevedo. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
4
3% of all-time downloads
All-time downloads
160
Public
Parameters
866M
4.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.6 GB · 100%
From the Hugging Face model README
This pipeline was finetuned from stabilityai/stable-diffusion-2-base on the lambdalabs/naruto-blip-captions dataset.
You can use the pipeline like so:
import torch
import os
import sys
import numpy as np
import torch_xla.core.xla_model as xm
from time import time
from typing import Tuple
from diffusers import StableDiffusionPipeline
def main(args):
device = xm.xla_device()
model_path = <output_dir>
pipe = StableDiffusionPipeline.from_pretrained(
model_path,
torch_dtype=torch.bfloat16
)
pipe.to(device)
prompt = ["A naruto with green eyes and red legs."]
image = pipe(prompt, num_inference_steps=30, guidance_scale=7.5).images[0]
image.save("naruto.png")
if __name__ == '__main__':
main()
These are the key hyperparameters used during training:
# TODO: add an example code snippet for running this diffusion pipeline
[TODO: provide examples of latent issues and potential remediations]
[TODO: describe the data used to train the model]