Skip to content

cfg effect experiment#5

Open
kevin-on wants to merge 8 commits intomainfrom
kevin/cfg-experiment
Open

cfg effect experiment#5
kevin-on wants to merge 8 commits intomainfrom
kevin/cfg-experiment

Conversation

@kevin-on
Copy link
Collaborator

No description provided.

- Introduced a new script to investigate the impact of classifier-free guidance (CFG) on image collapse during extended EqM sampling.
- Implemented baseline sampling with CFG and a switch experiment to analyze the effects of transitioning to null class labels.
- Captured intermediate latents and saved generated images at specified steps.
- Added argument parsing for various experiment configurations including model selection, image size, and sampling parameters.
…tput folder handling

- Updated IntermediateImageSaver to accept a folder pattern for dynamic folder naming.
- Modified GradientNormTracker's finalize method to directly accept parameters for sampling statistics.
- Adjusted calls to these classes across multiple scripts to ensure consistent usage of the new parameters.
…ross multiple scripts for improved clarity and default behavior
- Moved IntermediateImageSaver, GradientNormTracker, and other sampling hooks from utils.sampling_utils to utils.sampling_hooks for better organization.
- Updated import statements across multiple scripts to reflect the new module structure.
- Improved documentation to clarify the usage of the new hook system.
- Updated the `forward_with_cfg` method in `models.py` to include a new argument `return_components`, allowing the return of individual conditional and unconditional outputs.
- Modified `GradientNormTracker` in `sampling_hooks.py` to track and compute statistics for conditional and unconditional gradient norms when CFG is enabled.
- Adjusted sampling functions in `sampling_utils.py` to pass conditional and unconditional outputs to hooks, improving monitoring capabilities during sampling.
- Enhanced documentation to clarify the new functionality and its implications for gradient norm tracking.
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