ThunderVVV commited on
Commit
4272f00
·
1 Parent(s): ab6480b
Files changed (2) hide show
  1. app.py +1 -0
  2. thirdparty/DROID-SLAM/setup.py +29 -29
app.py CHANGED
@@ -24,6 +24,7 @@ def install_cuda_toolkit():
24
  install_cuda_toolkit()
25
 
26
  os.system('pip install -e ./thirdparty/DROID-SLAM')
 
27
  import torch
28
  import numpy as np
29
  from easydict import EasyDict
 
24
  install_cuda_toolkit()
25
 
26
  os.system('pip install -e ./thirdparty/DROID-SLAM')
27
+ os.system('pip install -e ./thirdparty/DROID-SLAM/thirdparty/lietorch')
28
  import torch
29
  import numpy as np
30
  from easydict import EasyDict
thirdparty/DROID-SLAM/setup.py CHANGED
@@ -30,32 +30,32 @@ setup(
30
  cmdclass={ 'build_ext' : BuildExtension }
31
  )
32
 
33
- setup(
34
- name='lietorch',
35
- version='0.2',
36
- description='Lie Groups for PyTorch',
37
- packages=['lietorch'],
38
- package_dir={'': 'thirdparty/lietorch'},
39
- ext_modules=[
40
- CUDAExtension('lietorch_backends',
41
- include_dirs=[
42
- osp.join(ROOT, 'thirdparty/lietorch/lietorch/include'),
43
- osp.join(ROOT, 'thirdparty/eigen')],
44
- sources=[
45
- 'thirdparty/lietorch/lietorch/src/lietorch.cpp',
46
- 'thirdparty/lietorch/lietorch/src/lietorch_gpu.cu',
47
- 'thirdparty/lietorch/lietorch/src/lietorch_cpu.cpp'],
48
- extra_compile_args={
49
- 'cxx': ['-O2'],
50
- 'nvcc': ['-O2',
51
- '-gencode=arch=compute_60,code=sm_60',
52
- '-gencode=arch=compute_61,code=sm_61',
53
- '-gencode=arch=compute_70,code=sm_70',
54
- '-gencode=arch=compute_75,code=sm_75',
55
- '-gencode=arch=compute_80,code=sm_80',
56
- '-gencode=arch=compute_86,code=sm_86',
57
- ]
58
- }),
59
- ],
60
- cmdclass={ 'build_ext' : BuildExtension }
61
- )
 
30
  cmdclass={ 'build_ext' : BuildExtension }
31
  )
32
 
33
+ # setup(
34
+ # name='lietorch',
35
+ # version='0.2',
36
+ # description='Lie Groups for PyTorch',
37
+ # packages=['lietorch'],
38
+ # package_dir={'': 'thirdparty/lietorch'},
39
+ # ext_modules=[
40
+ # CUDAExtension('lietorch_backends',
41
+ # include_dirs=[
42
+ # osp.join(ROOT, 'thirdparty/lietorch/lietorch/include'),
43
+ # osp.join(ROOT, 'thirdparty/eigen')],
44
+ # sources=[
45
+ # 'thirdparty/lietorch/lietorch/src/lietorch.cpp',
46
+ # 'thirdparty/lietorch/lietorch/src/lietorch_gpu.cu',
47
+ # 'thirdparty/lietorch/lietorch/src/lietorch_cpu.cpp'],
48
+ # extra_compile_args={
49
+ # 'cxx': ['-O2'],
50
+ # 'nvcc': ['-O2',
51
+ # '-gencode=arch=compute_60,code=sm_60',
52
+ # '-gencode=arch=compute_61,code=sm_61',
53
+ # '-gencode=arch=compute_70,code=sm_70',
54
+ # '-gencode=arch=compute_75,code=sm_75',
55
+ # '-gencode=arch=compute_80,code=sm_80',
56
+ # '-gencode=arch=compute_86,code=sm_86',
57
+ # ]
58
+ # }),
59
+ # ],
60
+ # cmdclass={ 'build_ext' : BuildExtension }
61
+ # )