mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-13 07:40:50 +08:00
Fix order
This commit is contained in:
parent
a99d706d48
commit
8f93d820bc
@ -135,15 +135,10 @@ def get_input_data_batches(input_data_all):
|
||||
if not inherit_id or axis_id is None:
|
||||
axis_id = str(uuid.uuid4())
|
||||
|
||||
pp(input_to_index)
|
||||
pp(input_to_values)
|
||||
pp(index_to_values)
|
||||
|
||||
indices = list(itertools.product(*index_to_coords))
|
||||
combinations = list(itertools.product(*index_to_values))
|
||||
|
||||
pp(indices)
|
||||
pp(combinations)
|
||||
|
||||
for i, indices_set in enumerate(indices):
|
||||
combination = combinations[i]
|
||||
|
||||
@ -266,7 +266,7 @@ app.registerExtension({
|
||||
imageSizeInput.addEventListener("input", () => {
|
||||
this.imageSize = parseInt(imageSizeInput.value);
|
||||
|
||||
const ratio = Math.min(this.imageSize / natWidth, this.imageSize / natHeight);
|
||||
const ratio = Math.min(this.imageSize / this.naturalWidth, this.imageSize / this.naturalHeight);
|
||||
const newWidth = this.naturalWidth * ratio;
|
||||
const newHeight = this.naturalHeight * ratio;
|
||||
this.imageWidth = newWidth;
|
||||
|
||||
@ -1083,10 +1083,6 @@ export class ComfyApp {
|
||||
let sortedKeys = Object.keys(promptInput.inputs);
|
||||
sortedKeys.sort((a, b) => a.localeCompare(b));
|
||||
|
||||
// Then reverse the order since we're traversing the graph upstream,
|
||||
// so application order of the inputs comes out backwards
|
||||
sortedKeys = sortedKeys.reverse();
|
||||
|
||||
for (const inputName of sortedKeys) {
|
||||
const input = promptInput.inputs[inputName];
|
||||
if (typeof input === "object" && "__inputType__" in input) {
|
||||
@ -1406,7 +1402,7 @@ export class ComfyApp {
|
||||
for (let widget of node.widgets) {
|
||||
if (node.type == "KSampler" || node.type == "KSamplerAdvanced") {
|
||||
if (widget.name == "sampler_name") {
|
||||
if (widget.value.startsWith("sample_")) {
|
||||
if (typeof widget.value === "string" && widget.value.startsWith("sample_")) {
|
||||
widget.value = widget.value.slice(7);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user