Example #1
0
 def dump_debug_matrix_by_hue(self, path, mat):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         img = support.array_to_rgb_by_hue(mat)[:, :, ::-1]
         img = np.uint8(img)
         support.save_image(path, img)
 def dump_debug_matrix_by_hue(self, path, mat):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         img = support.array_to_rgb_by_hue(mat)[:, :, ::-1]
         img = np.uint8(img)
         support.save_image(path, img)
Example #3
0
    def setUp(self):
        super().setUp()
        self.config = load_config()

        self.gl_executor = None
        self.releasables = []

        support.silent_make_dir(self.debug_dir())
    def setUp(self):
        super().setUp()
        self.config = load_config()

        self.gl_executor = None
        self.releasables = []

        support.silent_make_dir(self.debug_dir())
Example #5
0
 def dump_debug_img(self, path, img):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         support.save_image(path, img)
 def dump_debug_img(self, path, img):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         support.save_image(path, img)