Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -33,7 +33,6 @@ pipe = DepthCrafterPipeline.from_pretrained(
|
|
33 |
variant="fp16",
|
34 |
)
|
35 |
pipe.to("cuda")
|
36 |
-
pipe.enable_xformers_memory_efficient_attention()
|
37 |
|
38 |
|
39 |
@spaces.GPU(duration=120)
|
@@ -53,6 +52,7 @@ def infer_depth(
|
|
53 |
save_npz: bool = False,
|
54 |
):
|
55 |
set_seed(seed)
|
|
|
56 |
|
57 |
frames, target_fps = read_video_frames(video, process_length, target_fps, max_res)
|
58 |
print(f"==> video name: {video}, frames shape: {frames.shape}")
|
|
|
33 |
variant="fp16",
|
34 |
)
|
35 |
pipe.to("cuda")
|
|
|
36 |
|
37 |
|
38 |
@spaces.GPU(duration=120)
|
|
|
52 |
save_npz: bool = False,
|
53 |
):
|
54 |
set_seed(seed)
|
55 |
+
pipe.enable_xformers_memory_efficient_attention()
|
56 |
|
57 |
frames, target_fps = read_video_frames(video, process_length, target_fps, max_res)
|
58 |
print(f"==> video name: {video}, frames shape: {frames.shape}")
|