Skip to content
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

Introduce the copy mechanism #924

Merged
merged 6 commits into from
Oct 20, 2022
Merged

Introduce the copy mechanism #924

merged 6 commits into from
Oct 20, 2022

Conversation

anton-l
Copy link
Member

@anton-l anton-l commented Oct 20, 2022

# Copied from transformers.utils.check_copies

All credit goes to the amazing @sgugger!

@anton-l anton-l changed the title Introduce the copy mechanism [WIP] Introduce the copy mechanism Oct 20, 2022
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 20, 2022

The documentation is not available anymore as the PR was closed or merged.

Comment on lines +31 to 32
# Copied from diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput with DDPM->DDIM
class DDIMSchedulerOutput(BaseOutput):
Copy link
Member Author

Choose a reason for hiding this comment

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

Quick demo here as well :)

Comment on lines +47 to +50
- name: Check quality
run: |
python utils/check_copies.py
python utils/check_dummies.py
Copy link
Member Author

Choose a reason for hiding this comment

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

Finally some PR tests for both the dummies and the copies!

@anton-l anton-l changed the title [WIP] Introduce the copy mechanism Introduce the copy mechanism Oct 20, 2022
Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Very cool! Feel free to merge whenever :-)

@anton-l anton-l merged commit 32bf4fd into main Oct 20, 2022
@kashif kashif deleted the check-copies branch October 21, 2022 05:34
prathikr pushed a commit to prathikr/diffusers that referenced this pull request Oct 26, 2022
* Introduce the copy mechanism

* init tests

* fix dummy tests

* with

* update copies tests
PhaneeshB pushed a commit to nod-ai/diffusers that referenced this pull request Mar 1, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* Introduce the copy mechanism

* init tests

* fix dummy tests

* with

* update copies tests
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.

3 participants