Fix issue with LyCORIS version
This commit is contained in:
parent
13c4b1f73b
commit
9f6e0c1c8f
@ -213,6 +213,8 @@ This will store your a backup file with your current locally installed pip packa
|
|||||||
|
|
||||||
## Change History
|
## Change History
|
||||||
|
|
||||||
|
* 2023/03/30 (v21.3.8)
|
||||||
|
- Fix issue with LyCORIS version not being found: https://github.com/bmaltais/kohya_ss/issues/481
|
||||||
* 2023/03/29 (v21.3.7)
|
* 2023/03/29 (v21.3.7)
|
||||||
- Allow for 0.1 increment in Network and Conv alpha values: https://github.com/bmaltais/kohya_ss/pull/471 Thanks to @srndpty
|
- Allow for 0.1 increment in Network and Conv alpha values: https://github.com/bmaltais/kohya_ss/pull/471 Thanks to @srndpty
|
||||||
- Updated Lycoris module version
|
- Updated Lycoris module version
|
||||||
|
@ -25,6 +25,7 @@ timm==0.6.12
|
|||||||
huggingface-hub==0.13.0
|
huggingface-hub==0.13.0
|
||||||
tensorflow==2.10.1
|
tensorflow==2.10.1
|
||||||
# For locon support
|
# For locon support
|
||||||
lycoris_lora==0.1.4
|
lycoris-lora @ git+https://github.com/KohakuBlueleaf/LyCORIS.git@c3d925421209a22a60d863ffa3de0b3e7e89f047
|
||||||
|
# lycoris_lora==0.1.4
|
||||||
# for kohya_ss library
|
# for kohya_ss library
|
||||||
.
|
.
|
@ -25,7 +25,19 @@ for requirement in requirements:
|
|||||||
try:
|
try:
|
||||||
pkg_resources.require(requirement)
|
pkg_resources.require(requirement)
|
||||||
except pkg_resources.DistributionNotFound:
|
except pkg_resources.DistributionNotFound:
|
||||||
missing_requirements.append(requirement)
|
# Check if the requirement contains a VCS URL
|
||||||
|
if "@" in requirement:
|
||||||
|
# If it does, split the requirement into two parts: the package name and the VCS URL
|
||||||
|
package_name, vcs_url = requirement.split("@", 1)
|
||||||
|
# Use pip to install the package from the VCS URL
|
||||||
|
os.system(f"pip install -e {vcs_url}")
|
||||||
|
# Try to require the package again
|
||||||
|
try:
|
||||||
|
pkg_resources.require(package_name)
|
||||||
|
except pkg_resources.DistributionNotFound:
|
||||||
|
missing_requirements.append(requirement)
|
||||||
|
else:
|
||||||
|
missing_requirements.append(requirement)
|
||||||
except pkg_resources.VersionConflict as e:
|
except pkg_resources.VersionConflict as e:
|
||||||
wrong_version_requirements.append((requirement, str(e.req), e.dist.version))
|
wrong_version_requirements.append((requirement, str(e.req), e.dist.version))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user