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

fix(nodes,ui): metadata recall #5957

Merged
merged 5 commits into from
Mar 14, 2024
Merged

Conversation

psychedelicious
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Description

  • LoRA & Control Adapter metadata clears existing options on recall
  • Fix nonfunctional recall of control adapter fields like weight, step percentages, etc
  • Add processed control images to metadata (see commits for details)

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Control Adapter and LoRA metadata recall should work.

Merge Plan

This PR can be merged when approved.

@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations frontend PRs that change frontend files labels Mar 14, 2024
In the client, a controlnet or t2i adapter has two images:
- The source control image: the image the user selected (required)
- The processed control image: the user's image after we've processed it (optional)

The processed image is optional because a user may provide a pre-processed image.

We only actually use one of these images when building the graph, and until this change, we only stored one of the in image metadata. This created a situation where only a processed image was stored in metadata - say, a canny edge map - and the user-selected image wasn't provided.

By adding the processed image to metadata, we can recall both the control image and optional processed image.

This commit is followed by a UI-facing changes to support the change.
- Add helper functions to build metadata for control adapters, including the processed images
- Update parses to parse the new metadata
@hipsterusername hipsterusername enabled auto-merge (rebase) March 14, 2024 19:27
@hipsterusername hipsterusername merged commit 21621ee into main Mar 14, 2024
14 checks passed
@hipsterusername hipsterusername deleted the psyche/fix/ui/metadata-recall branch March 14, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files invocations PRs that change invocations python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: [4.0.0rc1]: Recalling LoRa Settings does not remove additional LoRas
4 participants