helper_utilsο
Classesο
Functionsο
|
|
|
|
|
Reads a JSON file and returns the data as a dictionary. |
|
Writes a dictionary to a JSON file. |
|
Module Contentsο
- class helper_utils.Constantsο
- PROJECT_FOLDER = '/data/simaai/applications/RaftStereo'ο
- DUMP = Falseο
- DEBUG = Falseο
- class helper_utils.ExtractorConstantsο
- unpack_shapes = [7864320, 7864320, 3932160, 983040, 245760, 11796480, 2949120, 737280, 245760, 245760]ο
- output_shapes = [[1, 80, 192, 256], [1, 80, 192, 256], [1, 80, 192, 128], [1, 40, 96, 128], [1, 20, 48, 128],...ο
- ifm_size = 2949120ο
- ofm_size = 36864000ο
- class helper_utils.RefinerConstantsο
- unpack_shapes = [3932160, 983040, 245760, 245760, 4423680, 245760]ο
- ifm_size = 36864000ο
- ofm_size = 4669440ο
- iter_num = 12ο
- class helper_utils.UpSamplerConstantsο
- ifm_size = 4669440ο
- ofm_size = 3932160ο
- flowup_shape = [1, 80, 192, 8]ο
- upmask_shape = [1, 80, 192, 144]ο
- HEIGHT = 1280ο
- WIDTH = 720ο
- output_dim = 0ο
- helper_utils.timeit(func)ο
- helper_utils.to_bf16_jax(data)ο
- helper_utils.read_json(filename='data.json')ο
Reads a JSON file and returns the data as a dictionary.
- helper_utils.write_json(data, filename='data.json')ο
Writes a dictionary to a JSON file.
- helper_utils.get_nv12(bgr_image)ο