Downloads · 30 days
0
ahmadjaved97/car_genrator_sd
car_genrator_sd is a machine learning model from ahmadjaved97. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
The model is fine tuned on different views and colors of car images.
Downloads · 30 days
0
Access
Public
Updated Jul 30, 2024
Repo size
3.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors6.5 MB · 100%
From the Hugging Face model README
The model is fine tuned on different views and colors of car images.
For inference, the following sample code can be used.
from diffusers import StableDiffusionPipeline
import torch
model_path = "ahmadjaved97/car_genrator_sd"
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
pipe.unet.load_attn_procs(model_path)
pipe.to("cuda")
prompt = "Front view of a yellow sports car running on a road"
image = pipe(prompt, num_inference_steps=30, guidance_scale=7.5).images[0]
image.save("car_image.png")