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

Update app.py

Browse files

update check sam2

Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,11 +1,10 @@
1
  import gradio as gr
2
- from sam2segment_structure import generate_trigger_crop
3
  import os
4
 
5
  if not os.path.exists("sam2"):
6
  print("add sam2")
7
  os.system("git clone https://github.com/facebookresearch/sam2.git") # 修改为你的 sam2 仓库地址
8
-
9
  # 模拟 lane_data(后期你可以动态读取 JSON 或用户上传)
10
  dummy_lane_data = {
11
  "lanes": [[-2, -2, -2, 814, 751, 688, 625, 562, 500, 438, 373, 305, 234, 160, 88, 16, -64, -2, -2, -2]],
 
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 = {
10
  "lanes": [[-2, -2, -2, 814, 751, 688, 625, 562, 500, 438, 373, 305, 234, 160, 88, 16, -64, -2, -2, -2]],