mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-15 23:50:05 +08:00
Trusted cursor too much, fixed torchaudio bool
This commit is contained in:
parent
982965f872
commit
f65319d980
@ -9,12 +9,11 @@ from typing import Type
|
||||
import av
|
||||
import numpy as np
|
||||
import torch
|
||||
TORCH_AUDIO_AVAILABLE = False
|
||||
if TORCH_AUDIO_AVAILABLE:
|
||||
try:
|
||||
import torchaudio
|
||||
except ImportError:
|
||||
TORCH_AUDIO_AVAILABLE = False
|
||||
try:
|
||||
import torchaudio
|
||||
TORCH_AUDIO_AVAILABLE = True
|
||||
except ImportError:
|
||||
TORCH_AUDIO_AVAILABLE = False
|
||||
from PIL import Image as PILImage
|
||||
from PIL.PngImagePlugin import PngInfo
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user