google-research / torchsde

Differentiable SDE solvers with GPU support and efficient sensitivity analysis.
Apache License 2.0
1.58k stars 199 forks source link

Floating point precision warning in brownian_interval.py #152

Open LaughterOnWater opened 2 months ago

LaughterOnWater commented 2 months ago

It's not stopping my generation, but I'm encountering the following warning when generating images using ComfyUI (which utilizes torchsde):

:\Users\Chris\miniconda3\envs\comfy_new\lib\site-packages\torchsde_brownian\brownian_interval.py:608: UserWarning: Should have tb<=t1 but got tb=14.614643096923828 and t1=14.614643. warnings.warn(f"Should have {tb_name}<=t1 but got {tb_name}={tb} and t1={self._end}.")

Environment:

Additional context: This appears to be a floating point precision issue in the comparison between tb and t1.

Please let me know if you need any additional information.

Annortheone commented 3 weeks ago

Have the same issue and the same numbers lol

MrXsc commented 5 days ago

I have the same problem, but it seems to be just a warning, with no obvious error to infer or run