Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made few changes in the code files. #571

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iopaint/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down
4 changes: 2 additions & 2 deletions iopaint/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion iopaint/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion iopaint/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down