Generate Videos 🎬
.---.
/ \\
| |
| PLAY |
| |
\\ /
`---'
wan2-img-to-video-lora 🎥
wan2-img-to-video-lora is a cutting-edge model that transforms static images into dynamic videos. It's perfect for creating engaging visual content, allowing users to bring their images to life with smooth transitions and effects.
Try wan2-img-to-video-lora on FlyMy.AI
Example: Convert Image to Video with wan2-img-to-video-lora 🎞️
# Install the FlyMyAI package
# pip install flymyai
from flymyai import client, FlyMyAIPredictException
import pathlib
# Set secret api key. You can find your api key in the profile settings
apikey = "fly-***"
# Set the model name
model = "flymyai/wan2-img-to-video-lora"
# Prepare the input data
payload = {
"prompt": "Morphing into plushtoy",
"negative_prompt": "bright colors, overexposed, static, blurry details, JPEG artifacts, low quality, fused fingers, warped limbs, cluttered background",
"width": 1280,
"height": 720,
"num_frames": 81,
"num_inference_steps": 30,
"guidance_scale": "5.0",
"input_image": pathlib.Path("/path/to/your/file.jpg"),
"lora_url": "None",
"fps": 16,
"acceleration_factor": "2.5"
}
# Initialize the client
fma_client = client(apikey=apikey)
try:
response = fma_client.predict(
model=model,
payload=payload
)
# Process the output data
print(f"output: {response.output_data['output']}")
except FlyMyAIPredictException as e:
print(e)
raise e
Available Models 🎯
- wan2-img-to-video-lora - Transform images into videos with LoRA support