mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Update image_utils.py
This commit is contained in:
parent
ad2b4144f2
commit
f73de37ce3
1 changed files with 5 additions and 8 deletions
|
@ -288,11 +288,8 @@ class TFLabConverter():
|
|||
self.lab_output_tensor = tf_rgb_to_lab()(self.bgr_input_tensor)
|
||||
self.bgr_output_tensor = tf_lab_to_rgb()(self.lab_input_tensor)
|
||||
|
||||
|
||||
def bgr2lab(self, bgr):
|
||||
return self.tf_sess.run(self.lab_output_tensor, feed_dict={self.bgr_input_tensor: bgr})
|
||||
|
||||
def lab2bgr(self, lab):
|
||||
return self.tf_sess.run(self.bgr_output_tensor, feed_dict={self.lab_input_tensor: lab})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue