facebookresearch / sam2

The repository provides code for running inference with the Meta Segment Anything Model 2 (SAM 2), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
11.15k stars 952 forks source link

about the eval speed #20

Open Lingering150 opened 2 months ago

Lingering150 commented 2 months ago

Excuse me,why the sagment is so fast on the website platform(less than 1s),but uses near 10s in local jupyter?

patermars commented 2 months ago

I think the videos on the website platform are pre-worked upon, also depends upon GPU, they can use multiple gpu (s).

Anyhow, how did you got your SAM-2 to build?? I can't even go around the installation part.

All i get is this error:

Building wheels for collected packages: SAM-2
  error: subprocess-exited-with-error

  × Building editable for SAM-2 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building editable for SAM-2 (pyproject.toml) ... error
  ERROR: Failed building editable for SAM-2
Failed to build SAM-2
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (SAM-2)

How did you got past this issue?

Lingering150 commented 2 months ago

Hello,thanks to your answers.I am sorry the I didn't  see your problem in my installation. I just download the segment-anything-2-main and run the "pip install -e." in the terminal in dictionary and everything is ok.  Wish you solving your problem.

------------------ 原始邮件 ------------------ 发件人: "Aryan Kumar @.>; 发送时间: 2024年7月30日(星期二) 下午4:50 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [facebookresearch/segment-anything-2] about the eval speed (Issue #20)

I think the videos on the website platform are pre-worked upon, also depends upon GPU, they can use multiple gpu (s).

Anyhow, how did you got your SAM-2 to build?? I can't even go around the installation part.

All i get is this error: Building wheels for collected packages: SAM-2 error: subprocess-exited-with-error × Building editable for SAM-2 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Building editable for SAM-2 (pyproject.toml) ... error ERROR: Failed building editable for SAM-2 Failed to build SAM-2 ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (SAM-2)
How did you got past this issue?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

patermars commented 2 months ago

Thanks buddy, that helped me to building Sam 2. I would have offered you an ice-cream if you were here, haha.

Have a nice day :)