Skip to content

Commit

Permalink
Merge pull request #2068 from bmaltais/dev
Browse files Browse the repository at this point in the history
v23.0.5
  • Loading branch information
bmaltais authored Mar 12, 2024
2 parents 5e90d26 + 8d30431 commit 5a60d05
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v23.0.4
v23.0.5
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ The documentation in this section will be moved to a separate document later.
## Change History
### 2024/03/11 (v23.0.5)
- Update python module verification
- Remove cudnn module installation in windows
### 2024/03/10 (v23.0.4)
- Update bitsandbytes to 0.43.0
Expand Down
8 changes: 7 additions & 1 deletion setup/setup_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,13 @@ def installed(package, friendly: str = None):
try:
if friendly:
pkgs = friendly.split()

# Exclude command-line options and URLs like "--index-url https://download.pytorch.org/whl/cu118"
pkgs = [
p
for p in package.split()
if not p.startswith('--') and "://" not in p # Exclude command-line options and URLs
]
else:
pkgs = [
p
Expand Down Expand Up @@ -503,7 +510,6 @@ def install(
pip(f'install --upgrade {package}', ignore=ignore, show_stdout=show_stdout)



def process_requirements_line(line, show_stdout: bool = False):
# Remove brackets and their contents from the line using regular expressions
# e.g., diffusers[torch]==0.10.2 becomes diffusers==0.10.2
Expand Down
2 changes: 1 addition & 1 deletion setup/setup_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def main_menu(platform_requirements_file, show_stdout: bool = False, no_run_acce
setup_common.check_python()

# Upgrade pip if needed
setup_common.install('--upgrade pip')
setup_common.install('pip')
setup_common.install_requirements(platform_requirements_file, check_no_verify_flag=False, show_stdout=show_stdout)
if not no_run_accelerate:
setup_common.configure_accelerate(run_accelerate=False)
Expand Down
2 changes: 1 addition & 1 deletion setup/setup_runpod.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main_menu(platform_requirements_file):
setup_common.check_python()

# Upgrade pip if needed
setup_common.install('--upgrade pip')
setup_common.install('pip')
setup_common.install_requirements(platform_requirements_file, check_no_verify_flag=False, show_stdout=True)
configure_accelerate()

Expand Down
2 changes: 1 addition & 1 deletion setup/setup_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def install_kohya_ss_torch2():
setup_common.update_submodule()

# Upgrade pip if needed
setup_common.install("--upgrade pip")
setup_common.install("pip")

setup_common.install_requirements(
"requirements_windows_torch2.txt", check_no_verify_flag=False
Expand Down

0 comments on commit 5a60d05

Please sign in to comment.