yerang commited on
Commit
e8da26b
1 Parent(s): 7782a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -20,27 +20,27 @@ import cv2
20
  # gdown.download_folder(url=folder_url, output="pretrained_weights", quiet=False)
21
 
22
 
23
- import sys
24
- sys.path.append('/home/user/.local/lib/python3.10/site-packages')
25
- sys.path.append('/home/user/.local/lib/python3.10/site-packages/stf_alternative/src/stf_alternative')
26
- sys.path.append('/home/user/.local/lib/python3.10/site-packages/stf_tools/src/stf_tools')
27
- sys.path.append('/home/user/app/')
28
- sys.path.append('/home/user/app/stf/')
29
- sys.path.append('/home/user/app/stf/stf_alternative/')
30
- sys.path.append('/home/user/app/stf/stf_alternative/src/stf_alternative')
31
- sys.path.append('/home/user/app/stf/stf_tools')
32
- sys.path.append('/home/user/app/stf/stf_tools/src/stf_tools')
33
-
34
-
35
-
36
- # CUDA 경로를 환경 변수로 설정
37
- os.environ['PATH'] = '/usr/local/cuda/bin:' + os.environ.get('PATH', '')
38
- os.environ['LD_LIBRARY_PATH'] = '/usr/local/cuda/lib64:' + os.environ.get('LD_LIBRARY_PATH', '')
39
- # 확인용 출력
40
- print("PATH:", os.environ['PATH'])
41
- print("LD_LIBRARY_PATH:", os.environ['LD_LIBRARY_PATH'])
42
-
43
- from stf_utils import STFPipeline
44
 
45
 
46
  def partial_fields(target_class, kwargs):
 
20
  # gdown.download_folder(url=folder_url, output="pretrained_weights", quiet=False)
21
 
22
 
23
+ # import sys
24
+ # sys.path.append('/home/user/.local/lib/python3.10/site-packages')
25
+ # sys.path.append('/home/user/.local/lib/python3.10/site-packages/stf_alternative/src/stf_alternative')
26
+ # sys.path.append('/home/user/.local/lib/python3.10/site-packages/stf_tools/src/stf_tools')
27
+ # sys.path.append('/home/user/app/')
28
+ # sys.path.append('/home/user/app/stf/')
29
+ # sys.path.append('/home/user/app/stf/stf_alternative/')
30
+ # sys.path.append('/home/user/app/stf/stf_alternative/src/stf_alternative')
31
+ # sys.path.append('/home/user/app/stf/stf_tools')
32
+ # sys.path.append('/home/user/app/stf/stf_tools/src/stf_tools')
33
+
34
+
35
+
36
+ # # CUDA 경로를 환경 변수로 설정
37
+ # os.environ['PATH'] = '/usr/local/cuda/bin:' + os.environ.get('PATH', '')
38
+ # os.environ['LD_LIBRARY_PATH'] = '/usr/local/cuda/lib64:' + os.environ.get('LD_LIBRARY_PATH', '')
39
+ # # 확인용 출력
40
+ # print("PATH:", os.environ['PATH'])
41
+ # print("LD_LIBRARY_PATH:", os.environ['LD_LIBRARY_PATH'])
42
+
43
+ # from stf_utils import STFPipeline
44
 
45
 
46
  def partial_fields(target_class, kwargs):