Update inference.py
Browse files- inference.py +2 -2
inference.py
CHANGED
|
@@ -11,7 +11,7 @@ from diffusers.utils.torch_utils import randn_tensor
|
|
| 11 |
from insightface.app import FaceAnalysis
|
| 12 |
from omegaconf import OmegaConf
|
| 13 |
from transformers import CLIPVisionModelWithProjection, Wav2Vec2Model, Wav2Vec2Processor
|
| 14 |
-
from torch.cuda.amp import autocast, GradScaler
|
| 15 |
|
| 16 |
from modules import UNet2DConditionModel, UNet3DConditionModel, VKpsGuider, AudioProjection
|
| 17 |
from pipelines import VExpressPipeline
|
|
@@ -274,7 +274,7 @@ class InferenceEngine(object):
|
|
| 274 |
|
| 275 |
return video_latents
|
| 276 |
|
| 277 |
-
@torch.cuda.amp.autocast()
|
| 278 |
def get_video_tensor(self, video_latents):
|
| 279 |
video_tensor = self.pipeline.decode_latents(video_latents)
|
| 280 |
if isinstance(video_tensor, np.ndarray):
|
|
|
|
| 11 |
from insightface.app import FaceAnalysis
|
| 12 |
from omegaconf import OmegaConf
|
| 13 |
from transformers import CLIPVisionModelWithProjection, Wav2Vec2Model, Wav2Vec2Processor
|
| 14 |
+
#from torch.cuda.amp import autocast, GradScaler
|
| 15 |
|
| 16 |
from modules import UNet2DConditionModel, UNet3DConditionModel, VKpsGuider, AudioProjection
|
| 17 |
from pipelines import VExpressPipeline
|
|
|
|
| 274 |
|
| 275 |
return video_latents
|
| 276 |
|
| 277 |
+
#@torch.cuda.amp.autocast()
|
| 278 |
def get_video_tensor(self, video_latents):
|
| 279 |
video_tensor = self.pipeline.decode_latents(video_latents)
|
| 280 |
if isinstance(video_tensor, np.ndarray):
|