Spaces:
Running
on
T4
Running
on
T4
Update models/GroundingDINO/ops/setup.py
Browse files
models/GroundingDINO/ops/setup.py
CHANGED
@@ -22,9 +22,9 @@ from setuptools import setup
|
|
22 |
|
23 |
requirements = ["torch", "torchvision"]
|
24 |
|
25 |
-
|
26 |
def get_extensions():
|
27 |
-
this_dir =
|
28 |
extensions_dir = os.path.join(this_dir, "src")
|
29 |
|
30 |
main_file = glob.glob(os.path.join(extensions_dir, "*.cpp"))
|
|
|
22 |
|
23 |
requirements = ["torch", "torchvision"]
|
24 |
|
25 |
+
#@spaces.GPU
|
26 |
def get_extensions():
|
27 |
+
this_dir = os.path.dirname(os.path.abspath(__file__))
|
28 |
extensions_dir = os.path.join(this_dir, "src")
|
29 |
|
30 |
main_file = glob.glob(os.path.join(extensions_dir, "*.cpp"))
|