Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running demo.py #85

Open
Grpab opened this issue Jan 1, 2025 · 2 comments
Open

Problem running demo.py #85

Grpab opened this issue Jan 1, 2025 · 2 comments

Comments

@Grpab
Copy link

Grpab commented Jan 1, 2025

Enter your own video and .txt runtime
if name == "main":
parser = argparse.ArgumentParser()
#print("1111")
parser.add_argument("--video_path",default="./assets/3.mp4", help="Input video path or directory of frames.")
parser.add_argument("--txt_path",default="./assets/test.txt", help="Path to ground truth text file.")
parser.add_argument("--model_path", default="sam2/checkpoints/sam2.1_hiera_base_plus.pt", help="Path to the model checkpoint.")
parser.add_argument("--video_output_path", default="./assets/output.mp4", help="Path to save the output video.")
parser.add_argument("--save_to_video", default=True, help="Save results to a video.")
args = parser.parse_args()
main(args)
The following questions will appear. Please help me answer the specific reasons. thank you
/home/cyy/anaconda3/envs/samurai/bin/python /home/cyy/code/grp/samurai-master/demo.py
SAMURAI mode: True

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

@hsiangwei0903
Copy link
Collaborator

Looks like you ran out of memory. You might need to use a shorter video.

@Grpab
Copy link
Author

Grpab commented Jan 2, 2025

看来您的内存不足了。您可能需要使用较短的视频。

Thank you for your answer, I will try your suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants