- Replace `use_pretrained_backbone` with `pretrained_backbone_weights` - Bump diffusers' minimum version `0.26.3` -> `0.27.2` - Add ignore flags in CI's pytest - Change Box observation spaces in simulation environments - Set `version_base="1.2"` in Hydra initializations - Bump einops' minimum version `0.7.0` -> `0.8.0`
13 lines
378 B
Python
13 lines
378 B
Python
import warnings
|
|
|
|
import imageio
|
|
|
|
|
|
def write_video(video_path, stacked_frames, fps):
|
|
# Filter out DeprecationWarnings raised from pkg_resources
|
|
with warnings.catch_warnings():
|
|
warnings.filterwarnings(
|
|
"ignore", "pkg_resources is deprecated as an API", category=DeprecationWarning
|
|
)
|
|
imageio.mimsave(video_path, stacked_frames, fps=fps)
|