Spaces:
Runtime error
Runtime error
Fix zero gpu support
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ if os.getenv('SYSTEM') == 'spaces':
|
|
| 39 |
ProjectDir = os.path.abspath(os.path.dirname(__file__))
|
| 40 |
CheckpointsDir = os.path.join(ProjectDir, "models")
|
| 41 |
|
|
|
|
| 42 |
@torch.no_grad()
|
| 43 |
def debug_inpainting(video_path, bbox_shift, extra_margin=10, parsing_mode="jaw",
|
| 44 |
left_cheek_width=90, right_cheek_width=90):
|
|
|
|
| 39 |
ProjectDir = os.path.abspath(os.path.dirname(__file__))
|
| 40 |
CheckpointsDir = os.path.join(ProjectDir, "models")
|
| 41 |
|
| 42 |
+
@spaces.GPU()
|
| 43 |
@torch.no_grad()
|
| 44 |
def debug_inpainting(video_path, bbox_shift, extra_margin=10, parsing_mode="jaw",
|
| 45 |
left_cheek_width=90, right_cheek_width=90):
|