forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
29 lines (20 loc) · 705 Bytes
/
config.py
File metadata and controls
29 lines (20 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from jetson_containers import CUDA_ARCHITECTURES
def nerfstudio(version, requires=None, default=False):
pkg = package.copy()
if requires:
pkg['requires'] = requires
pkg['name'] = f'nerfstudio:{version}'
pkg['build_args'] = {
'CUDAARCHS': ';'.join([str(x) for x in CUDA_ARCHITECTURES]),
'NERFSTUDIO_VERSION': version,
}
builder = pkg.copy()
builder['name'] = f'nerfstudio:{version}-builder'
builder['build_args'] = {**pkg['build_args'], **{'FORCE_BUILD': 'on'}}
if default:
pkg['alias'] = 'nerfstudio'
builder['alias'] = 'nerfstudio:builder'
return pkg, builder
package = [
nerfstudio('1.1.7', default=True)
]