Download reconstruction/modules/Fast-SAM3D/cache_utils_ss/cache_init.py from hk239/v2d: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/datasets/hk239/v2d/resolve/main/reconstruction/modules/Fast-SAM3D/cache_utils_ss/cache_init.py
- Command line
-
hf download hf://datasets/hk239/v2d/reconstruction/modules/Fast-SAM3D/cache_utils_ss/cache_init.py
-
curl -L -o cache_init.py https://huggingface.co/datasets/hk239/v2d/resolve/main/reconstruction/modules/Fast-SAM3D/cache_utils_ss/cache_init.py
756 Bytes
| def cache_init(num_steps , cache_interval = 3 , max_order = 1 , first_enhance = 2 , end_enhance = 24): | |
| ''' | |
| Initialization for cache. | |
| ''' | |
| cache_dic = {} | |
| cache = {} | |
| cache[-1]={} | |
| cache_dic['cache_counter'] = 0 | |
| cache[-1]['final'] = {} | |
| cache[-1]['final']['final'] = {} | |
| cache[-1]['final']['final']['final'] = {} | |
| cache_dic['cache'] = cache | |
| cache_dic['cache_interval'] = cache_interval | |
| cache_dic['max_order'] = max_order | |
| cache_dic['first_enhance'] = first_enhance | |
| cache_dic['end_enhance'] = end_enhance | |
| cache_dic['taylor_cache'] = True | |
| current = {} | |
| current['activated_steps'] = [] | |
| current['step'] = 0 | |
| current['num_steps'] = num_steps | |
| return cache_dic, current | |