Skip to content

sync head #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 3, 2025
Merged

sync head #5

merged 22 commits into from
Apr 3, 2025

Conversation

jonluca
Copy link

@jonluca jonluca commented Apr 3, 2025

Summary by CodeRabbit

  • Documentation

    • Added a new "Video to Video Generation" section with detailed examples and usage instructions.
    • Updated installation guidelines to use standardized environment variable values for offline mode and telemetry.
    • Expanded example documentation for the FaithDiff Stable Diffusion XL Pipeline, illustrating high-quality image restoration.
  • New Features

    • Introduced a video-to-video generation pipeline that lets users generate video outputs from existing video inputs using text prompts.

a-r-r-o-w and others added 22 commits March 31, 2025 13:33
* update

* raise warning and round to nearest multiple of scale factor
…already set (#10918)

* Bug fix in ltx

* Assume packed latents.

---------

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>
* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update
…XPU (#11191)

Signed-off-by: YAO Matrix <matrix.yao@intel.com>
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
fix: optional componentes verification on load
* rewrite memory count without implicitly using dimensions by @ic-synth

* replace F.pad by built-in padding in Conv3D

* in-place sums to reduce memory allocations

* fixed trailing whitespace

* file reformatted

* in-place sums

* simpler in-place expressions

* removed in-place sum, may affect backward propagation logic

* removed in-place sum, may affect backward propagation logic

* removed in-place sum, may affect backward propagation logic

* reverted change
…e dtype (#10301)

* allow models to run with a user-provided dtype map instead of a single dtype

* make style

* Add warning, change `_` to `default`

* make style

* add test

* handle shared tensors

* remove warning

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…#11197)

* add xpu part

* fix more cases

* remove some cases

* no canny

* format fix
* Fix enable_sequential_cpu_offload in CogView4Pipeline

* make fix-copies
added onnxruntime-vitisai for custom build onnxruntime pkg
…11188)

* feat: [Community Pipeline] - FaithDiff Stable Diffusion XL Pipeline for Image SR.

* added pipeline
* model card gen code

* push modelcard creation

* remove optional from params

* add import

* add use_dora check

* correct lora var use in tags

* make style && make quality

---------

Co-authored-by: Aryan <aryan@huggingface.co>
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Change LoRA Loader to StableDiffusion

Replace the SDXL LoRA Loader Mixin inheritance with the StableDiffusion one
update style bot workflow
@jonluca jonluca merged commit 8b29764 into weights-ai:main Apr 3, 2025
Copy link

coderabbitai bot commented Apr 3, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update removes an outdated pre-commit script from the GitHub Actions workflow and improves documentation by adding a new “Video to Video Generation” section with detailed examples and corrections. Environment variable instructions in the installation guide have been updated. Several example scripts have been refactored to improve image and model card handling. The core library has received type‐annotation improvements, caching features, and more flexible padding and latent processing. A new pipeline, WanVideoToVideoPipeline, with supportive tests, has been added alongside various related enhancements in pipelines, utilities, and test modules.

Changes

File(s) Change Summary
.github/workflows/pr_style_bot.yml Removed pre-commit script performing file consistency checks.
docs/source/en/api/pipelines/wan.md, docs/source/en/installation.md Added “Video to Video Generation” section, fixed import typos, and updated environment variable instructions.
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py, examples/community/README.md, examples/community/lpw_stable_diffusion_xl.py Refactored model card generation to use structured data; added new FaithDiff pipeline section and updated latent processing.
src/diffusers/__init__.py, src/diffusers/configuration_utils.py, src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/transformers/transformer_ltx.py, src/diffusers/models/transformers/transformer_wan.py Added new pipeline export, enhanced type annotations, improved padding logic, and integrated CacheMixin for caching.
src/diffusers/pipelines/... (cogview4, kolors, ltx, wan including pipeline_wan.py, pipeline_wan_i2v.py, pipeline_wan_video2video.py) Streamlined device assignment; added current_timestep property; updated latent preparation and num_frames adjustment; introduced comprehensive WanVideoToVideoPipeline functionality.
src/diffusers/schedulers/scheduling_utils.py, src/diffusers/utils/dummy_torch_and_transformers_objects.py, src/diffusers/utils/import_utils.py, src/diffusers/utils/testing_utils.py Updated scheduler method signatures with explicit return types; added a dummy WanVideoToVideoPipeline class; expanded package availability checks; refined XPU memory reset logic.
tests/pipelines/controlnet_hunyuandit/test_controlnet_hunyuandit.py, tests/pipelines/wan/test_wan_video_to_video.py, tests/quantization/bnb/test_mixed_int8.py Adjusted expected outputs based on device type, introduced unit tests for the new video-to-video pipeline, and updated autocast and device assignment for quantization tests.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Pipeline as WanVideoToVideoPipeline
    participant Tokenizer
    participant TextEncoder
    participant VAE
    participant Scheduler
    User->>Pipeline: Provide video input & text prompt
    Pipeline->>Tokenizer: Tokenize text prompt
    Tokenizer->>TextEncoder: Send tokens
    TextEncoder-->>Pipeline: Return prompt embeddings
    Pipeline->>VAE: Prepare latents from video input
    Pipeline->>Scheduler: Retrieve timesteps
    loop Denoising Loop
        Scheduler->>Pipeline: Next timestep information
        Pipeline->>VAE: Update latents based on model output
    end
    Pipeline-->>User: Return processed video output
Loading

Poem

I’m a rabbit in the code, bounding along with delight,
Hopping through new pipelines that shine so bright.
Changes sprout like carrots in rows neat and strong,
Each refactor and fix sings a joyful song.
With tests and tweaks aplenty, our garden grows all day—
A coding meadow where magic and logic play!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6dd087f and 6edb774.

📒 Files selected for processing (33)
  • .github/workflows/pr_style_bot.yml (0 hunks)
  • docs/source/en/api/pipelines/wan.md (5 hunks)
  • docs/source/en/installation.md (2 hunks)
  • docs/source/en/using-diffusers/loading.md (1 hunks)
  • examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py (5 hunks)
  • examples/community/README.md (2 hunks)
  • examples/community/lpw_stable_diffusion_xl.py (2 hunks)
  • src/diffusers/__init__.py (2 hunks)
  • src/diffusers/configuration_utils.py (2 hunks)
  • src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py (2 hunks)
  • src/diffusers/models/transformers/transformer_ltx.py (2 hunks)
  • src/diffusers/models/transformers/transformer_wan.py (2 hunks)
  • src/diffusers/pipelines/__init__.py (2 hunks)
  • src/diffusers/pipelines/cogview4/pipeline_cogview4.py (1 hunks)
  • src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py (1 hunks)
  • src/diffusers/pipelines/kolors/pipeline_kolors.py (2 hunks)
  • src/diffusers/pipelines/ltx/pipeline_ltx.py (3 hunks)
  • src/diffusers/pipelines/ltx/pipeline_ltx_condition.py (3 hunks)
  • src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py (4 hunks)
  • src/diffusers/pipelines/pipeline_loading_utils.py (3 hunks)
  • src/diffusers/pipelines/pipeline_utils.py (4 hunks)
  • src/diffusers/pipelines/wan/__init__.py (2 hunks)
  • src/diffusers/pipelines/wan/pipeline_wan.py (1 hunks)
  • src/diffusers/pipelines/wan/pipeline_wan_i2v.py (1 hunks)
  • src/diffusers/pipelines/wan/pipeline_wan_video2video.py (1 hunks)
  • src/diffusers/schedulers/scheduling_utils.py (2 hunks)
  • src/diffusers/utils/dummy_torch_and_transformers_objects.py (1 hunks)
  • src/diffusers/utils/import_utils.py (1 hunks)
  • src/diffusers/utils/testing_utils.py (1 hunks)
  • tests/pipelines/controlnet_hunyuandit/test_controlnet_hunyuandit.py (2 hunks)
  • tests/pipelines/test_pipelines_common.py (1 hunks)
  • tests/pipelines/wan/test_wan_video_to_video.py (1 hunks)
  • tests/quantization/bnb/test_mixed_int8.py (2 hunks)
🔥 Files not summarized due to errors (2)
  • docs/source/en/using-diffusers/loading.md: Error: Disallowed special token found: <|endoftext|>
  • tests/pipelines/test_pipelines_common.py: Error: Disallowed special token found: <|endoftext|>
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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.