Skip to content

Memory estimation code can now take into account conds.#8307

Merged
comfyanonymous merged 1 commit intomasterfrom
temp_pr
May 27, 2025
Merged

Memory estimation code can now take into account conds.#8307
comfyanonymous merged 1 commit intomasterfrom
temp_pr

Conversation

@comfyanonymous
Copy link
Member

This makes it possible for the memory estimation to be based on specific conds for models instead of only the shape of the noise.

This for model_base.py:

self.memory_usage_factor_conds, which conds to use in the memory estimation.

def extra_conds_shapes(self, **kwargs), this function is the extra_conds function but returns shapes only.

memory_required now has a cond_shapes parameter.

@comfyanonymous comfyanonymous merged commit 06c6610 into master May 27, 2025
6 checks passed
@comfyanonymous comfyanonymous deleted the temp_pr branch May 28, 2025 04:04
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

Successfully merging this pull request may close these issues.

1 participant