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

feat: controlnet util refresh #6271

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

While digging into controlnet image processors to understand how to best integrate with regional control, I ran into some poorly documented functions originating from the controlnet repo. In the process of figuring out exactly what they do, I cleaned them up and added comments + type annotations.

Should be no functional changes to the code.

Related Issues / Discussions

QA Instructions

Could try reproducing a controlnet gen before and after (I did test this already).

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

Now they can be used in type signatures without circular imports.
- Use the our adaptation of the HWC3 function with better types
- Extraction some of the util functions, name them better, add comments
- Improve type annotations
- Remove unreachable codepaths
@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations backend PRs that change backend files python-tests PRs that change python tests labels Apr 25, 2024
@psychedelicious psychedelicious enabled auto-merge (rebase) April 25, 2024 03:15
@psychedelicious psychedelicious merged commit 398f37c into main Apr 25, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/controlnet-util-refresh branch April 25, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files invocations PRs that change invocations python PRs that change python files python-tests PRs that change python tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants