Spaces:
Runtime error
Runtime error
Jingkang Yang
commited on
Commit
·
05fb372
1
Parent(s):
1a1c3c3
update: support scannet
Browse files- app.py +11 -11
- outputs/test.py +0 -0
app.py
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
# Copyright (c) Facebook, Inc. and its affiliates.
|
2 |
# Copyright (c) Meta Platforms, Inc. All Rights Reserved
|
3 |
|
4 |
-
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
#
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
|
17 |
import argparse
|
18 |
import glob
|
|
|
1 |
# Copyright (c) Facebook, Inc. and its affiliates.
|
2 |
# Copyright (c) Meta Platforms, Inc. All Rights Reserved
|
3 |
|
4 |
+
import os
|
5 |
+
os.system('pip install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio==0.10.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html')
|
6 |
|
7 |
+
try:
|
8 |
+
import detectron2
|
9 |
+
except:
|
10 |
+
import os
|
11 |
+
# os.system('cd /home/user/app/third_party/CLIP && pip install -Ue .')
|
12 |
+
os.system('pip install git+https://github.com/Jun-CEN/CLIP.git')
|
13 |
+
os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
14 |
+
os.system('pip install git+https://github.com/facebookresearch/pytorch3d.git')
|
15 |
+
os.system('pip install git+https://github.com/facebookresearch/segment-anything.git')
|
16 |
|
17 |
import argparse
|
18 |
import glob
|
outputs/test.py
DELETED
File without changes
|