Zhibinhong commited on
Commit
8d7f875
1 Parent(s): 8b3181e

Update visual_chatgpt.py

Browse files
Files changed (1) hide show
  1. visual_chatgpt.py +2 -1
visual_chatgpt.py CHANGED
@@ -809,12 +809,13 @@ class Segmenting:
809
  print("getcwd",os.getcwd())
810
  REPO_DIR = os.path.dirname(__file__)
811
  path=os.path.join(REPO_DIR, "checkpoints/sam")
812
- # print("ls-R",os.system("ls -R"))
813
  # print("find",os.system("find ./ -name 'handler.py'"))
814
  print("finddir",os.system("find /repository -type d -iname 'checkpoints'"))
815
  url = "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth"
816
  if not os.path.exists(path):
817
  os.makedirs(path)
 
818
  # wget.download(url,out=self.model_checkpoint_path)
819
  wget.download(url,out=path)
820
 
 
809
  print("getcwd",os.getcwd())
810
  REPO_DIR = os.path.dirname(__file__)
811
  path=os.path.join(REPO_DIR, "checkpoints/sam")
812
+ print("ls-R",os.system("ls -R /repository/checkpoints"))
813
  # print("find",os.system("find ./ -name 'handler.py'"))
814
  print("finddir",os.system("find /repository -type d -iname 'checkpoints'"))
815
  url = "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth"
816
  if not os.path.exists(path):
817
  os.makedirs(path)
818
+ print("我进来了!")
819
  # wget.download(url,out=self.model_checkpoint_path)
820
  wget.download(url,out=path)
821