-
-
Notifications
You must be signed in to change notification settings - Fork 326
Adds Segment Sampler and Scheduler #1117
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
base: master
Are you sure you want to change the base?
Conversation
src/BuiltinExtensions/ComfyUIBackend/ComfyUIBackendExtension.cs
Outdated
Show resolved
Hide resolved
|
Use as: |
|
They need to appended, not prepended |
done:
|
|
Leaving previous comment, but what's inserted now is prepended with space:
|
|
I'd do The important bit is being after |
|
Now:
|
|
Not ready to merge, I think. I'm getting: |
|
|
| "normal", Toggleable: true, FeatureFlag: "comfyui", Group: T2IParamTypes.GroupRefinerOverrides, OrderPriority: -1.5, | ||
| GetValues: (_) => Schedulers | ||
| )); | ||
| SegmentSamplerParam = T2IParamTypes.Register<string>(new("Segment Sampler", SamplerParam.Type.Description + "\nThis is an override to only affect the Segment stage.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reiterate: these params should not exist
| setupDropdown('input_sampler', this.segmentModalSampler, 'text_prompt_segment_sampler_toggle'); | ||
| setupDropdown('input_scheduler', this.segmentModalScheduler, 'text_prompt_segment_scheduler_toggle'); | ||
| } | ||
| catch (e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh? what's this empty catch?
| long seed = g.UserInput.Get(T2IParamTypes.Seed) + 2 + i; | ||
| double cfg = g.UserInput.GetNullable(T2IParamTypes.CFGScale, part.ContextID, false) ?? g.UserInput.GetNullable(T2IParamTypes.SegmentCFGScale, part.ContextID) ?? g.UserInput.GetNullable(T2IParamTypes.RefinerCFGScale, part.ContextID) ?? g.UserInput.Get(T2IParamTypes.CFGScale, 7, sectionId: part.ContextID); | ||
| string sampler = g.CreateKSampler(model, prompt, negPrompt, [g.MaskShrunkInfo.MaskedLatent, 0], cfg, steps, startStep, 10000, seed, false, true, sectionId: part.ContextID); | ||
| string explicitSampler = g.UserInput.Get(ComfyUIBackendExtension.SamplerParam, null, sectionId: part.ContextID, includeBase: false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed? should already be grabbing the correct sampler in existing code


Use as: