Last active
November 25, 2023 20:47
-
-
Save aquadzn/32ac53aa6e485e7c3e09b1a0914f7422 to your computer and use it in GitHub Desktop.
DINO Video inference
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can anyone help me out here? I've tried changing args.input_path to "../input/" and args.output_dir to "../output/" as suggested above but keep running into the following error:
predict_video(args)
IsADirectoryError Traceback (most recent call last)
in ()
----> 1 predict_video(args)
in predict_video(args)
1 def predict_video(args):
2 for frame in sorted(os.listdir(args.image_path)):
----> 3 with open(os.path.join(args.image_path, frame), 'rb') as f:
4 img = Image.open(f)
5 img = img.convert('RGB')
IsADirectoryError: [Errno 21] Is a directory: '../input/.ipynb_checkpoints'