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

fix torchvision import #6796

Merged
merged 1 commit into from
Jan 31, 2024
Merged

fix torchvision import #6796

merged 1 commit into from
Jan 31, 2024

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Jan 31, 2024

What does this PR do?

Removes hard requirement on torchvision dependency

@@ -5,7 +5,7 @@

import numpy as np
import torch
from torchvision import transforms
from transformers import is_torchvision_available
Copy link
Collaborator

Choose a reason for hiding this comment

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

should add this function to diffusers cc @sayakpaul

@yiyixuxu yiyixuxu merged commit c3369f5 into main Jan 31, 2024
14 of 15 checks passed
@yiyixuxu yiyixuxu deleted the fix_torchvision_import branch January 31, 2024 22:13
patrickvonplaten added a commit that referenced this pull request Jan 31, 2024
@HuggingFaceDocBuilderDev

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.

dg845 pushed a commit to dg845/diffusers that referenced this pull request Feb 2, 2024
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
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