From 787777a93288d78fcc97ffae3d5c4258c5e1e3c5 Mon Sep 17 00:00:00 2001 From: "vahid K. nejad" Date: Wed, 12 Apr 2023 15:38:16 +0400 Subject: [PATCH] check requirement --- install.py | 5 +++++ .gitignore | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 install.py diff --git a/ install.py b/ install.py new file mode 100644 index 0000000..2dbcdac --- /dev/null +++ b/ install.py @@ -0,0 +1,5 @@ +import launch + +if not launch.is_installed("imageio"): + if not launch.is_installed("imageio.plugins.ffmpeg"): + launch.run_pip("install imageio[ffmpeg]", "requirements for Infinite-Zoom") diff --git a/.gitignore b/.gitignore index b6e4761..876e20e 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,5 @@ dmypy.json # Pyre type checker .pyre/ +.vscode/settings.json +.DS_Store