mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 05:22:06 -07:00
added support of non-english characters in paths
This commit is contained in:
parent
0313fd9ae6
commit
5a1fb199f4
7 changed files with 47 additions and 23 deletions
|
@ -1,7 +1,8 @@
|
|||
from enum import IntEnum
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
from utils.cv2_utils import *
|
||||
|
||||
class SampleType(IntEnum):
|
||||
IMAGE = 0 #raw image
|
||||
|
||||
|
@ -37,7 +38,7 @@ class Sample(object):
|
|||
close_target_list=close_target_list if close_target_list is not None else self.close_target_list)
|
||||
|
||||
def load_bgr(self):
|
||||
img = cv2.imread (self.filename).astype(np.float32) / 255.0
|
||||
img = cv2_imread (self.filename).astype(np.float32) / 255.0
|
||||
if self.mirror:
|
||||
img = img[:,::-1].copy()
|
||||
return img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue