MaxwellMeyer commited on
Commit
11be3ff
·
verified ·
1 Parent(s): 3b5223c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -109,7 +109,7 @@ import torch
109
 
110
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
111
 
112
- file = "./image.png" # input image
113
 
114
  model = BEN2.BEN_Base().to(device).eval() #init pipeline
115
 
@@ -119,7 +119,7 @@ model.loadcheckpoints("./BEN2_Base.pth")
119
 
120
 
121
  model.segment_video(
122
- video_path="/path_to_your_video.mp4",
123
  output_path="./", # Outputs will be saved as foreground.webm or foreground.mp4. The default value is "./"
124
  fps=0, # If this is set to 0 CV2 will detect the fps in the original video. The default value is 0.
125
  refine_foreground=False, #refine foreground is an extract postprocessing step that increases inference time but can improve matting edges. The default value is False.
 
109
 
110
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
111
 
112
+ video_path = "/path_to_your_video.mp4"# input video
113
 
114
  model = BEN2.BEN_Base().to(device).eval() #init pipeline
115
 
 
119
 
120
 
121
  model.segment_video(
122
+ video_path= video_path,
123
  output_path="./", # Outputs will be saved as foreground.webm or foreground.mp4. The default value is "./"
124
  fps=0, # If this is set to 0 CV2 will detect the fps in the original video. The default value is 0.
125
  refine_foreground=False, #refine foreground is an extract postprocessing step that increases inference time but can improve matting edges. The default value is False.