colorization.atlas_utils package¶
Subpackages¶
Submodules¶
colorization.atlas_utils.acl_image module¶
- class colorization.atlas_utils.acl_image.AclImage(image, width=0, height=0, size=0, memory_type=0)¶
Bases:
object
- __del__()¶
- __dict__ = mappingproxy({'__module__': 'colorization.atlas_utils.acl_image', '__init__': <function AclImage.__init__>, '_instance_by_numpy_array': <function AclImage._instance_by_numpy_array>, '_instance_by_image_file': <function AclImage._instance_by_image_file>, '_instance_by_buffer': <function AclImage._instance_by_buffer>, 'tobytes': <function AclImage.tobytes>, 'data': <function AclImage.data>, 'copy_to_device': <function AclImage.copy_to_device>, 'copy_as_nparray': <function AclImage.copy_as_nparray>, 'destroy': <function AclImage.destroy>, '__del__': <function AclImage.__del__>, '__dict__': <attribute '__dict__' of 'AclImage' objects>, '__weakref__': <attribute '__weakref__' of 'AclImage' objects>, '__doc__': None, '__annotations__': {}})¶
- __init__(image, width=0, height=0, size=0, memory_type=0)¶
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'colorization.atlas_utils.acl_image'¶
- __weakref__¶
list of weak references to the object (if defined)
- _instance_by_buffer(image_buffer, width, height, size)¶
- _instance_by_image_file(image_path)¶
- _instance_by_numpy_array(image, width, height)¶
- copy_as_nparray()¶
- copy_to_device(run_mode)¶
- data()¶
- destroy()¶
- tobytes()¶
colorization.atlas_utils.constants module¶
Copyright (R) @huawei.com, all rights reserved -- coding:utf-8 -- CREATED: 2020-6-04 20:12:13 MODIFIED: 2020-6-06 14:04:45