mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-26 01:39:07 +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 av
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
TORCH_AUDIO_AVAILABLE = False
|
try:
|
||||||
if TORCH_AUDIO_AVAILABLE:
|
import torchaudio
|
||||||
try:
|
TORCH_AUDIO_AVAILABLE = True
|
||||||
import torchaudio
|
except ImportError:
|
||||||
except ImportError:
|
TORCH_AUDIO_AVAILABLE = False
|
||||||
TORCH_AUDIO_AVAILABLE = False
|
|
||||||
from PIL import Image as PILImage
|
from PIL import Image as PILImage
|
||||||
from PIL.PngImagePlugin import PngInfo
|
from PIL.PngImagePlugin import PngInfo
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user