forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
30 lines (21 loc) · 744 Bytes
/
config.py
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
30
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.4', default=True),
nerfstudio('0.3.2', default=False)
]