Comfy-Org / Comfy-Org/ComfyUI

Torchvision cannot load Image Extension Problem

Open
#2,775 0 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

Hi, I am Struggling this issue for few weeks And I just Solve it so I share it now.
I don't know I am just idiot but I wish this help someone else save time who spend few weeks like me.

Platform
* M3 Macbook Pro
* Install Torch and Torchvision as "nightly" channel

Issue
* Failed to load Image Extension Error
* Error Log recommand me to check "Did you install libjpeg and libpng"?
* This warning happens when I use "import torchvision" to verify whether it installed

Situation
* I installed torchvision use below command line as it is written on Macbook MPS Document.
conda install pytorch torchvision torchaudio -c pytorch-nightly

Solution
* But after checking the version, the torchvision which is installed above command is 0.15 version which isn't the recent release.
* So, Just install torchvision seperately "pip install torchvision" and it lead me to install newest version, and the warning disappeared.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.