Skip to content

Conversation

@qinxuye
Copy link
Contributor

@qinxuye qinxuye commented Apr 19, 2025

import base64

prompt = "A cat walks on the grass, realistic"
negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards"

model = client.get_model('Wan2.1-1.3B')

resp = model.text_to_video(
    prompt=prompt,
    negative_prompt=negative_prompt,
    height=480,
    width=832,
    num_frames=81,
    guidance_scale=5.0,
    fps=15
)

b64_video = resp['data'][0]['b64_json']
video_bytes = base64.b64decode(b64_video)

with open('wan.mp4', 'wb') as f:
    f.write(video_bytes)
wan.mp4

@XprobeBot XprobeBot added this to the v1.x milestone Apr 19, 2025
@qinxuye qinxuye merged commit 313d590 into xorbitsai:main Apr 21, 2025
12 of 13 checks passed
@qinxuye qinxuye deleted the feat/wan branch April 21, 2025 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants