You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does num_inference_steps have the default None? It's not an Optional. It cannot be None. This leads to weird error messages if you skip this parameter.
Why does num_inference_steps have the default None? It's not an Optional. It cannot be None
num_inference_steps is optional, it is None when we pass sigmas.
This leads to weird error messages if you skip this parameter.
What is the error message?
sigmas is undocumented
It appears to be missing from the docstring, sigmas is passed to FlowMatchEulerDiscreteScheduler to accommodate different "base schedules" which tend to be unique in FlowMatch models. The default in FlowMatchEulerDiscreteScheduler, as in, when we pass num_inference_steps is for SD3 as this was added first. Flux, HunyuanVideo, LTX, Mochi all pass their own base schedule from through sigmas to FlowMatchEulerDiscreteScheduler from the pipeline.
mu is undocumented, even though it can be a required parameter
mu is used when use_dynamic_shifting=True, there is a check that mu is not None when use_dynamic_shifting=True.
scheduler.set_timesteps()
File "...\venv\src\diffusers\src\diffusers\schedulers\scheduling_flow_match_euler_discrete.py", line 257, in set_timesteps
timesteps = np.linspace(
File "...\venv\lib\site-packages\numpy\core\function_base.py", line 122, in linspace
num = operator.index(num)
TypeError: 'NoneType' object cannot be interpreted as an integer
Thank you for your explanations regarding the other parameters, but I meant that they should be documented in the code/docs
Describe the bug
Why does
num_inference_steps
have the defaultNone
? It's not anOptional
. It cannot beNone
. This leads to weird error messages if you skip this parameter.diffusers/src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py
Line 239 in 37c9697
sigmas
is undocumented:diffusers/src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py
Line 241 in 37c9697
mu
is undocumented, even though it can be a required parameter (depending on configuration):diffusers/src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py
Line 242 in 37c9697
Reproduction
see above
Logs
System Info
HEAD
Who can help?
@yiyixuxu
The text was updated successfully, but these errors were encountered: