jarjoura commited on
Commit
c2b6899
·
verified ·
1 Parent(s): 160e3c5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +2 -7
README.md CHANGED
@@ -15,18 +15,13 @@ Architecture: DINOv2 backbone + DPT head with AnimateDiff-style temporal motion
15
  ## Usage
16
 
17
  ```python
18
- from pathlib import Path
19
- from mlx_vlm.utils import load_model
20
- from mlx_vlm.models.video_depth_anything.processing_video_depth_anything import (
21
- VideoDepthProcessor,
22
- )
23
  from mlx_vlm.models.video_depth_anything.generate import (
24
  VideoDepthPredictor,
25
  read_video_frames,
26
  )
27
 
28
- model = load_model(Path("mlx-community/Video-Depth-Anything-Base-MLX"))
29
- processor = VideoDepthProcessor.from_pretrained("mlx-community/Video-Depth-Anything-Base-MLX")
30
  predictor = VideoDepthPredictor(model, processor)
31
 
32
  frames, fps = read_video_frames("input.mp4", max_len=300, target_fps=15)
 
15
  ## Usage
16
 
17
  ```python
18
+ from mlx_vlm import load
 
 
 
 
19
  from mlx_vlm.models.video_depth_anything.generate import (
20
  VideoDepthPredictor,
21
  read_video_frames,
22
  )
23
 
24
+ model, processor = load("mlx-community/Video-Depth-Anything-Base-MLX"))
 
25
  predictor = VideoDepthPredictor(model, processor)
26
 
27
  frames, fps = read_video_frames("input.mp4", max_len=300, target_fps=15)