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

update resize_lora.py (fix out of bounds and index) #328

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

mgz-dev
Copy link
Contributor

@mgz-dev mgz-dev commented Mar 26, 2023

Fix error where index may go out of bounds when using certain dynamic parameters.

Fix index and rank issue (previously some parts of code was incorrectly using python index position rather than rank, which is -1 dim).
@kohya-ss
Copy link
Owner

Thank you for this! I didn't fully understand the theory, but it looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants