Fix consistency_models class-label sampling and latent shapes#13679
Open
hlky wants to merge 1 commit intohuggingface:mainfrom
Open
Fix consistency_models class-label sampling and latent shapes#13679hlky wants to merge 1 commit intohuggingface:mainfrom
hlky wants to merge 1 commit intohuggingface:mainfrom
Conversation
76 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #13643.
Selected target:
ConsistencyModelPipeline(consistency_models).No duplicate fix was found.
generatorwhen sampling random class labels for class-conditional consistency models.unet.config.in_channelsandunet.config.sample_size.sample_sizeconfigs.VaeImageProcessor.AGENTS.md suggestions
VaeImageProcessor.postprocess(...)instead of hand-rolling denormalization, tensor-to-NumPy conversion, or PIL conversion logic inside the pipeline.None, generator lists, tensor/list/int unions, or returns either an output dataclass or tuple, reflect that in the annotation.output_typevalues, generator-list support, and behavior that changes when optional inputs such asclass_labelsare omitted.Tests
Result: tests and checks passed.