惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
F
Fortinet All Blogs
J
Java Code Geeks
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
M
MIT News - Artificial intelligence
腾讯CDC
Last Week in AI
Last Week in AI
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
博客园 - 叶小钗
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
L
LangChain Blog
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

Replicate's blog

How to make remarkable videos with Seedance 2.0 – Replicate blog How to prompt Seedream 5.0 – Replicate blog Recraft V4: image generation with design taste – Replicate blog Run Isaac 0.1 on Replicate – Replicate blog Run FLUX.2 on Replicate – Replicate blog How to prompt Nano Banana Pro – Replicate blog Retro Diffusion's pixel art models are now on Replicate – Replicate blog Replicate is joining Cloudflare – Replicate blog Extract text from documents and images with Datalab Marker and OCR – Replicate blog How to prompt Veo 3.1 – Replicate blog IBM's Granite 4.0 is now on Replicate – Replicate blog Which image editing model should I use? – Replicate blog Introducing our new search API – Replicate blog Torch compile caching for inference speed – Replicate blog Announcing Replicate's remote MCP server – Replicate blog How to prompt Veo 3 with images – Replicate blog Open source video is back – Replicate blog Generate consistent characters – Replicate blog Bria is now on Replicate – Replicate blog How we optimized FLUX.1 Kontext [dev] – Replicate blog Compare AI video models – Replicate blog The FLUX.1 Kontext hackathon – Replicate blog How to prompt Veo 3 for the best results – Replicate blog Get the most from Google Veo 3 – Replicate blog FLUX.1 Kontext from the community – Replicate blog Use FLUX.1 Kontext to edit images with words – Replicate blog Generate incredible images with Google's Imagen 4 – Replicate blog Run OpenAI’s latest models on Replicate – Replicate blog NVIDIA H100 GPUs are here – Replicate blog Run 30,000+ LoRAs on Hugging Face with Replicate – Replicate blog
Wan2.1 parameter sweep – Replicate blog
2025-03-05 · via Replicate's blog

We’ve been playing with Alibaba’s WAN2.1 text-to-video model lately. Like most image and video generation models, Wan has a lot of input parameters, and each of them can have a profound impact on the quality of the generated output.

What happens when you tweak those mysterious inputs? Let’s find out.

The experiment

We wanted to see how the guidance scale and shift input parameters affect the output. For our experiment, we used the WAN2.1 14b text-to-video model with 720p resolution.

To do this, we did what’s called a “parameter sweep”, systematically testing different combinations of input values to understand how they affect the output. We generated videos for each combination of guidance scale and shift values, keeping all other parameters constant.

We kept the following inputs consistent across all the videos:

  • prompt: "A smiling woman walking in London at night"
  • seed: 42
  • frames: 81
  • sample_steps: 30

We then varied just these two inputs, testing against a range of values:

  • sample_guide_scale: from 0 to 10
  • sample_shift: from 1 to 9

If you’d like to run similar experiments yourself, we’ve shared the code on GitHub that we used to generate these parameter sweeps.

What is guide scale?

You can think of the guide scale as the “creativity vs obedience” knob.

At guide_scale=0, the model ignores your prompt. As you increase the value, the model tries harder to match your prompt.

  • Lower values: more creative freedom.
  • Higher values: more literal interpretation.

Here’s what happens when you dial it from 0 to 10:

What is shift?

Shift controls how the model moves through the denoising process, affecting motion and time flow in your video.

It’s basically controlling the “flow of time” in your generated video.

  • Lower values: smoother, more predictable movement.
  • Higher values: more dynamic but sometimes chaotic motion.

Here’s what happens when you change shift from 1 to 9:

What we’re seeing in these videos

For guide scale:

  • guide_scale=0: Really weird but cool outputs. Creative but barely related to the prompt.
  • guide_scale=1-2: Strange artifacts, especially around the woman’s mouth.
  • guide_scale=3-7: 👈 The sweet spot. Natural looking with minimal issues.
  • guide_scale=8+: The dreaded “AI look” creeps in - that overcooked, shiny skin that screams “I was made by AI.”

Recommendation: Use 0 for weird creative stuff, 3-7 for realistic results, and avoid 8+ unless you want that AI shine.

For shift values (all with guide_scale=5):

  • shift=1: Creates a cool “dolly effect” where the background warps but the person looks real.
  • shift=3-6: Shows varied women (different skin tones, all brunettes) positioned on the left side with a zoomed-out perspective.
  • shift=7-9: Consistently shows a blonde woman on the right side of the frame, with surprisingly similar results across these values.

Higher shift values tend to look better overall, but the differences are more subtle than with guide scale changes.

Why this matters

Getting these parameters right makes the difference between an amateur-looking video and something that looks almost professional.

Most people just use the defaults, but knowing how to tweak these gives you way more control over your outputs.

Now you don’t have to guess anymore.


Got any parameters you’re curious about? Let us know!