Fix order

This commit is contained in:
space-nuko 2023-06-09 22:39:54 -05:00
parent a99d706d48
commit 8f93d820bc
3 changed files with 2 additions and 11 deletions

View File

@ -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]

View File

@ -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;

View File

@ -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);
}
}