Evan73 commited on
Commit
5668d1d
·
verified ·
1 Parent(s): 7067e59

Update app.py

Browse files

update check sam2

Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
  import os
3
-
4
- if not os.path.exists("sam2"):
5
- print("add sam2")
6
- os.system("git clone https://github.com/facebookresearch/sam2.git") # 修改为你的 sam2 仓库地址
 
7
  from sam2segment_structure import generate_trigger_crop
8
  # 模拟 lane_data(后期你可以动态读取 JSON 或用户上传)
9
  dummy_lane_data = {
 
1
  import gradio as gr
2
  import os
3
+ import time
4
+ # if not os.path.exists("sam2"):
5
+ print("add sam2")
6
+ os.system("git clone https://github.com/facebookresearch/sam2.git") # 修改为你的 sam2 仓库地址
7
+ time.sleep(3)
8
  from sam2segment_structure import generate_trigger_crop
9
  # 模拟 lane_data(后期你可以动态读取 JSON 或用户上传)
10
  dummy_lane_data = {