Spaces:
Sleeping
Sleeping
Update src/facerender/animate.py
Browse files
src/facerender/animate.py
CHANGED
@@ -120,7 +120,6 @@ class AnimateFromCoeff():
|
|
120 |
|
121 |
return checkpoint['epoch']
|
122 |
|
123 |
-
from torch.cuda.amp import autocast
|
124 |
def generate(self, x, video_save_dir, pic_path, crop_info, enhancer=None, background_enhancer=None, preprocess='crop'):
|
125 |
source_image=x['source_image'].type(torch.FloatTensor)
|
126 |
source_semantics=x['source_semantics'].type(torch.FloatTensor)
|
|
|
120 |
|
121 |
return checkpoint['epoch']
|
122 |
|
|
|
123 |
def generate(self, x, video_save_dir, pic_path, crop_info, enhancer=None, background_enhancer=None, preprocess='crop'):
|
124 |
source_image=x['source_image'].type(torch.FloatTensor)
|
125 |
source_semantics=x['source_semantics'].type(torch.FloatTensor)
|