Skip to content

Refactor diffusionsat source code to be more clean and update with latest huggingface/diffusers - #23

Open
Bili-Sakura wants to merge 13 commits into
samar-khanna:mainfrom
Bili-Sakura:main
Open

Refactor diffusionsat source code to be more clean and update with latest huggingface/diffusers#23
Bili-Sakura wants to merge 13 commits into
samar-khanna:mainfrom
Bili-Sakura:main

Conversation

@Bili-Sakura

Copy link
Copy Markdown

For details of changes, see git commit history.

Replace src/diffusers references with libs/diffusers across Makefile,
setup.py, pyproject.toml, and README.md. Update installation to use
pip install diffusers instead of editable install from src.
…ort and simplifying initialization. Remove legacy code and streamline forward method for enhanced clarity and performance.
…etadata handling and conditioning embedding. Simplify initialization and forward methods, while ensuring compatibility with varying downsample strides.
…ion handling. Remove unused ControlNetOutput class and streamline Conv3d initialization for better readability. Update logging imports for consistency.
…cing compatibility and simplifying the forward method. Remove unused methods and streamline imports for improved readability.
…ffusersStableDiffusionPipeline and DiffusersControlNetPipeline, enhancing functionality and reducing code duplication. Streamline method definitions for improved readability and maintainability.
…bleDiffusionPipeline, enhancing functionality and reducing code duplication. Streamline method definitions for improved readability and maintainability.
…nd pipeline_controlnet.py to align with updated module structure, enhancing code organization and maintainability.
…text_to_image.py by removing unused image_grid and compute_snr definitions. Update compute_snr call to use noise_scheduler for improved functionality and maintainability.
…eamline import statements and remove unused code in controlnet_texas_samples.ipynb and single-image.ipynb. Update metadata handling and enhance code readability.
@Bili-Sakura

Copy link
Copy Markdown
Author

This is still on going. I will test model loading, inference and training in days. Furthermore, I will integrate the diffusionsat code as a custom pipeline so that only huggingface/diffusers packages is needed.

…neration

- Introduced `pipeline_diffusionsat.py` for standard text-to-image generation with metadata support.
- Added `pipeline_diffusionsat_controlnet.py` for ControlNet generation, incorporating conditional metadata handling.
- Created README.md to document usage and setup instructions for the new pipelines.
@Bili-Sakura

Bili-Sakura commented Jan 28, 2026

Copy link
Copy Markdown
Author

Also, I wonder can I re-distribute the model checkpoint from zenodo to huggingface/models for community convinient usage.

I made a quick test repo on https://huggingface.co/BiliSakura . Tell me if any copyright concerns.

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