-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathapi_constants.py
More file actions
32 lines (28 loc) · 1.01 KB
/
api_constants.py
File metadata and controls
32 lines (28 loc) · 1.01 KB
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
31
32
api_options = {
#'outputs': ["depth"], # list of outputs to send in response. examples ["depth", "normalmap", 'heatmap', "normal", 'background_removed'] etc
#'conversions': "", #TODO implement. it's a good idea to give some options serverside for because often that's challenging in js/clientside
'save':"" #TODO implement. To save on local machine. Can be very helpful for debugging.
}
# TODO: These are intended to be temporary
api_defaults={
"BOOST": False,
"NET_SIZE_MATCH": True
}
#These are enforced after user inputs
api_forced={
"GEN_SIMPLE_MESH": False,
"GEN_INPAINTED_MESH": False
}
#model diction TODO find a way to remove without forcing people do know indexes of models
models_to_index = {
'res101':0,
'dpt_beit_large_512 (midas 3.1)':1,
'dpt_beit_large_384 (midas 3.1)':2,
'dpt_large_384 (midas 3.0)':3,
'dpt_hybrid_384 (midas 3.0)':4,
'midas_v21':5,
'midas_v21_small':6,
'zoedepth_n (indoor)':7,
'zoedepth_k (outdoor)':8,
'zoedepth_nk':9
}