Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Cosmos3 action generation support#13823

Merged
yiyixuxu merged 33 commits into
huggingface:mainfrom
yzhautouskay:cosmos3/action-generation
Jun 4, 2026
Merged

Add Cosmos3 action generation support#13823
yiyixuxu merged 33 commits into
huggingface:mainfrom
yzhautouskay:cosmos3/action-generation

Conversation

@yzhautouskay

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@github-actions github-actions Bot added size/L PR with diff > 200 LOC models pipelines examples and removed size/L PR with diff > 200 LOC labels May 28, 2026
@github-actions github-actions Bot added the size/L PR with diff > 200 LOC label May 28, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 28, 2026
Comment thread src/diffusers/models/transformers/transformer_cosmos3.py Outdated
Comment thread src/diffusers/models/transformers/transformer_cosmos3.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated

@dg845 dg845 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Left some initial comments :).

@github-actions github-actions Bot added the utils label Jun 1, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu yiyixuxu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I left some feedbacks

Comment thread src/diffusers/models/transformers/transformer_cosmos3.py Outdated
Comment thread src/diffusers/models/transformers/transformer_cosmos3.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py
Comment thread src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py Outdated
@dg845

dg845 commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

@bot /style

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Style bot fixed some files and pushed the changes.

@yiyixuxu yiyixuxu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Comment thread src/diffusers/models/transformers/transformer_cosmos3.py
@yiyixuxu yiyixuxu merged commit bcc20e4 into huggingface:main Jun 4, 2026
29 of 32 checks passed
@yiyixuxu

yiyixuxu commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

thanks a lot for the PR!

DN6 pushed a commit that referenced this pull request Jul 1, 2026
* Add Cosmos3 action generation support

* Add README action examples

* Use do_classifier_free_guidance property

* Remove unused method

* Add action policy example to pipelines doc

* Adding model selection for action example doc.

* Remove redundant casts

* Rename _pack_action_tokens to _prepare_action_segment

* Move validation checks to check_inputs

* Add action arguments in the __call__ docstring

* Move action mode check to check_inputs

* Rename action to action_tokens

* Add warning for num_frames ovewrite attempt

* Rename action_tokens to raw_actions

* Remove scheduler config override

* Refactor action to use CosmosActionCondition

* Fix examples script to support flow_shift arg

* Apply styling fixes

* Remove CosmosActionCondition properties, move to pipeline

* Replace validate wiht post init

* Set height/width/num_frames to None, raise error if set ofr action

* Fix action_dim default setting

* Remove video argument before v2v is added

* Fix None args

* Add _EMBODIMENT_TO_RAW_ACTION_DIM mapping

* Remove --raw-action-dim from README.md

* Added  prompt upsampler docs and examples

* Apply style fixes

* Bugfix for action mrope compression factor

* Add action prompt json formatting, update docs

* Add hand_pose raw_action_dim value

* Add missing args to docstrings

---------

Co-authored-by: Atharva Joshi <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: YiYi Xu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation examples models pipelines size/L PR with diff > 200 LOC utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants