mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
DFLIMG refactoring
This commit is contained in:
parent
a9b23e9851
commit
efe3b56683
12 changed files with 175 additions and 547 deletions
|
@ -171,7 +171,7 @@ class FaceSamplesLoaderSubprocessor(Subprocessor):
|
|||
idx, filename = data
|
||||
dflimg = DFLIMG.load (Path(filename))
|
||||
|
||||
if dflimg is None:
|
||||
if dflimg is None or not dflimg.has_data():
|
||||
self.log_err (f"FaceSamplesLoader: {filename} is not a dfl image file.")
|
||||
data = None
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue