fix of converter when using relighted faces in dst

This commit is contained in:
Colombo 2019-11-12 17:37:13 +04:00
parent 4868bd1324
commit 2167c5cbcb
4 changed files with 16 additions and 2 deletions

View file

@ -235,7 +235,9 @@ def relight(input_dir, lighten=None, random_one=None):
i += 1
cv2_imwrite (relighted_filepath, relighted_img )
dflimg.embed_and_set (relighted_filepath, source_filename="_", relighted=True )
dflimg.remove_source_filename()
dflimg.embed_and_set (relighted_filepath, relighted=True )
except:
io.log_err (f"Exception occured while processing file {filepath.name}. Error: {traceback.format_exc()}")