Sponsored by
Crazyrouter
-The enterprise-grade, cost-effective AI API gateway that provides one API key to access 300+ AI models through OpenAI-compatible endpoints, with
import torch
from diffusers import ErnieImagePipeline
pipe = ErnieImagePipeline.from_pretrained(
"ovedrive/ERNIE-Image-nf4",
torch_dtype=torch.bfloat16,
).to("cuda")
image = pipe(
prompt="This is a photograph depicting an urban street scene. Shot at eye level, it shows a covered pedestrian or commercial street. Slightly below the center of the frame, a cyclist rides away from the camera toward the background, appearing as a dark silhouette against backlighting with indistinct details. The ground is paved with regular square tiles, bisected by a prominent tactile paving strip running through the scene, whose raised textures are clearly visible under the light. Light streams in diagonally from the right side of the frame, creating a strong backlight effect with a distinct Tyndall effect—visible light beams illuminating dust or vapor in the air and casting long shadows across the street. Several pedestrians appear on the left side and in the distance, some with their backs to the camera and others walking sideways, all rendered as silhouettes or semi-silhouettes. The overall color palette is warm, dominated by golden yellows and dark browns, evoking the atmosphere of dusk or early morning.",
height=1264,
width=848,
num_inference_steps=50,
guidance_scale=4.0,
use_pe=True# use prompt enhancer
).images[0]
image.save("output.png")
curl -X POST http://localhost:30000/v1/images/generations \
-H "Content-Type: application/json" \
-d '{ "prompt": "This is a photograph depicting an urban street scene. Shot at eye level, it shows a covered pedestrian or commercial street. Slightly below the center of the frame, a cyclist rides away from the camera toward the background, appearing as a dark silhouette against backlighting with indistinct details. The ground is paved with regular square tiles, bisected by a prominent tactile paving strip running through the scene, whose raised textures are clearly visible under the light. Light streams in diagonally from the right side of the frame, creating a strong backlight effect with a distinct Tyndall effect—visible light beams illuminating dust or vapor in the air and casting long shadows across the street. Several pedestrians appear on the left side and in the distance, some with their backs to the camera and others walking sideways, all rendered as silhouettes or semi-silhouettes. The overall color palette is warm, dominated by golden yellows and dark browns, evoking the atmosphere of dusk or early morning.", "height": 1264, "width": 848, "num_inference_steps": 50, "guidance_scale": 4.0, "use_pe": true }' \
--output output.png
Runs of ovedrive ERNIE-Image-nf4 on huggingface.co
19
Total runs
0
24-hour runs
1
3-day runs
6
7-day runs
2
30-day runs
More Information About ERNIE-Image-nf4 huggingface.co Model
ERNIE-Image-nf4 huggingface.co is an AI model on huggingface.co that provides ERNIE-Image-nf4's model effect (), which can be used instantly with this ovedrive ERNIE-Image-nf4 model. huggingface.co supports a free trial of the ERNIE-Image-nf4 model, and also provides paid use of the ERNIE-Image-nf4. Support call ERNIE-Image-nf4 model through api, including Node.js, Python, http.
ERNIE-Image-nf4 huggingface.co is an online trial and call api platform, which integrates ERNIE-Image-nf4's modeling effects, including api services, and provides a free online trial of ERNIE-Image-nf4, you can try ERNIE-Image-nf4 online for free by clicking the link below.
ovedrive ERNIE-Image-nf4 online free url in huggingface.co:
ERNIE-Image-nf4 is an open source model from GitHub that offers a free installation service, and any user can find ERNIE-Image-nf4 on GitHub to install. At the same time, huggingface.co provides the effect of ERNIE-Image-nf4 install, users can directly use ERNIE-Image-nf4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.