From 182afabed3b289e9e4c766ecdae46ced191973c1 Mon Sep 17 00:00:00 2001 From: Vignesh Skanda Date: Thu, 26 Sep 2024 11:37:16 +0530 Subject: [PATCH 1/4] Update runtime.py Updated a minor change in the code: The function dump_environment_info() is defined to return Dict[str, str], but in reality, it returns a Dict[str, Any] because _package_versions contains string or N/A values. --- iopaint/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iopaint/runtime.py b/iopaint/runtime.py index f3eba43f6..dd140bd13 100644 --- a/iopaint/runtime.py +++ b/iopaint/runtime.py @@ -40,7 +40,7 @@ pass -def dump_environment_info() -> Dict[str, str]: +def dump_environment_info() -> Dict[str, Any]: """Dump information about the machine to help debugging issues.""" # Generic machine info From c678f47a3618dc117d11334b3fe62d162f566200 Mon Sep 17 00:00:00 2001 From: Vignesh Skanda Date: Thu, 26 Sep 2024 12:05:03 +0530 Subject: [PATCH 2/4] Update installer.py Updated the code according to the newer version of pip. --- iopaint/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iopaint/installer.py b/iopaint/installer.py index 01506d9df..cf8bc1ea1 100644 --- a/iopaint/installer.py +++ b/iopaint/installer.py @@ -3,7 +3,7 @@ def install(package): - subprocess.check_call([sys.executable, "-m", "pip", "install", package]) + subprocess.check_call([sys.executable, "-m", "pip3", "install", package]) def install_plugins_package(): From 370910ce85ddee13ebdb2a7e14751e1398ab0bc4 Mon Sep 17 00:00:00 2001 From: Vignesh Skanda Date: Thu, 26 Sep 2024 12:07:05 +0530 Subject: [PATCH 3/4] Update helper.py updated few typos in the code. --- iopaint/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iopaint/helper.py b/iopaint/helper.py index 1c99dcf51..a9972bd32 100644 --- a/iopaint/helper.py +++ b/iopaint/helper.py @@ -60,7 +60,7 @@ def download_model(url, model_md5: str = None): os.remove(cached_file) logger.error( f"Model md5: {_md5}, expected md5: {model_md5}, wrong model deleted. Please restart iopaint." - f"If you still have errors, please try download model manually first https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" + f"If you still have errors, please try to download the model manually https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" ) except: logger.error( @@ -84,7 +84,7 @@ def handle_error(model_path, model_md5, e): os.remove(model_path) logger.error( f"Model md5: {_md5}, expected md5: {model_md5}, wrong model deleted. Please restart iopaint." - f"If you still have errors, please try download model manually first https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" + f"If you still have errors, please try to download the model manually https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" ) except: logger.error( From c706b010133d531f13a34bd6358542631aeb6d94 Mon Sep 17 00:00:00 2001 From: Vignesh Skanda Date: Thu, 26 Sep 2024 12:11:05 +0530 Subject: [PATCH 4/4] Update const.py --- iopaint/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iopaint/const.py b/iopaint/const.py index b18254b41..5bb0fb9a5 100644 --- a/iopaint/const.py +++ b/iopaint/const.py @@ -105,7 +105,7 @@ INPUT_HELP = """ If input is image, it will be loaded by default. -If input is directory, you can browse and select image in file manager. +If input is directory, you can browse and select image in the file manager. """ GUI_HELP = """