Skip to content

Conversation

@patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Jan 31, 2024

What does this PR do?

Removes hard requirement on torchvision dependency

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
@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.

4 participants