XXX2333/OranAI_realistic_quality
By XXX2333 · ↓ 2 · ♥ 0 · Updated 2024-12-27
What's in this repo
This page lists the files in XXX2333/OranAI_realistic_quality, including openvino_model.onnx.
- 1 ONNX models (.onnx files)
- 38 files, including 15 .json, 9 .bin, 9 .xml, 2 .txt, 1 .md, 1 .onnx
- Last updated 2024-12-27
ONNX files
| File | Size | Download |
|---|---|---|
| text_encoder/openvino_model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
from openvino.runtime import get_version
print(get_version()) from optimum.intel import OVStableDiffusionXLPipeline from diffusers import DiffusionPipeline, LCMScheduler import time
openvion版本要求高,但是不要用最新的
model_path = './ov-dmd-1step' pipeline = OVStableDiffusionXLPipeline.from_pretrained( model_path, ov_config={"CACHE_DIR": "."}, )
pipeline.scheduler = LCMScheduler.from_config(pipeline.scheduler.config) prompt = "a close-up picture of an old man standing in the rain"
image = pipeline(prompt = prompt, num_inference_steps=1,guidance_scale=0, timesteps=[399]).images[0] image.save("ovgenerated_ship.png")
Model info
Created: 2024-12-27
Updated: 2024-12-27
View on Hugging FaceFiles (38)
Related models
More from XXX2333
No other models by this author.