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: remove the sliders from the controlnet modes and leave the values the same as in the webapp #150

Conversation

TheLLspectre
Copy link
Contributor

Removing other modalities options.
Fix naming on slider and displaying value.

@Morgan-6Freedom
Copy link
Contributor

⚠ : does this code is able to change the options when the model is a SD1.5 and when the model is a SDXL ?

@Morgan-6Freedom Morgan-6Freedom added the enhancement New feature or request label Mar 6, 2024
@Morgan-6Freedom
Copy link
Contributor

⚠ : does this code is able to change the options when the model is a SD1.5 and when the model is a SDXL ?

Will be done in #125

@@ -36,11 +36,16 @@ public partial class PromptWindowUI

public string selectedPreset = "";
public int selectedOption1Index = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename Option1Name if there is no more 1-2-3-4, etc...
(and also other Something1Variable names)

public int sliderDisplayedValue = 100;

/// <summary>
/// Value from the guidance slider in controlNet options, use to send to generation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems that this value is not only for guidance but that's what the comment is saying

sliderValue3 = Mathf.Round(EditorGUILayout.Slider(Mathf.Clamp(sliderValue3, 0.1f, 1.0f), 0.1f, 1.0f) * 100) / 100;
GUILayout.EndHorizontal();
{
GUILayout.Label("Guidance :", EditorStyles.label);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aligned of calling this Guidance and I would prefer Influence. @qvaleroo what do you think ?

@Morgan-6Freedom Morgan-6Freedom merged commit 8ec675e into develop Mar 7, 2024
1 check passed
@Morgan-6Freedom Morgan-6Freedom deleted the 124-remove-the-sliders-from-the-controlnet-modes-and-leave-the-values-the-same-as-in-the-webapp branch March 7, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants