8000 Req: Weights PCA · Issue #11 · CodeExplode/stable-diffusion-webui-embedding-editor · GitHub
[go: up one dir, main page]

Skip to content

Req: Weights PCA #11

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

Open
torridgristle opened this issue Mar 31, 2023 · 0 comments
Open

Req: Weights PCA #11

torridgristle opened this issue Mar 31, 2023 · 0 comments

Comments

@torridgristle
Copy link
torridgristle commented Mar 31, 2023

I'm very interested in this extension, but the sliders seem to be unorganized. Rather than only getting the min and max value of every embedding, perhaps using torch.pca_lowrank() or what have you in order to arrange the features of the embeddings will allow for a more natural modification of tokens?

However, there's a big issue with this: There's a lot of tokens that people will likely have no interest in. So instead of a PCA of every embedding, the ability to choose a handful of tokens that you're interested in / have similar qualities, run PCA on that, and modify the sliders to act within this via matrix multiplication with the matrix it generates, and an inverse matrix to transform the weights back into the original space. The number of sliders will end up changing to the minimum of the number of features and the number of embeddings, I don't know if that'll be an issue for the UI. The torch.pca_lowrank() q parameter will need to be set manually or else it'll cap out at 6 by default, only giving 6 sliders.

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

No branches or pull requests

1 participant
0