mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
Minor update
- Updated requirements - Little refactoring in models/ModelBase.py
This commit is contained in:
parent
5c5d9af588
commit
d7c5e7e9f1
3 changed files with 3 additions and 3 deletions
|
@ -494,14 +494,12 @@ class ModelBase(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(fun(), 'r') as file, open(models.get_config_schema_path(), 'r') as schema:
|
with open(fun(), 'r') as file, open(models.get_config_schema_path(), 'r') as schema:
|
||||||
|
|
||||||
|
|
||||||
data = yaml.safe_load(file)
|
data = yaml.safe_load(file)
|
||||||
validate(data, yaml.safe_load(schema))
|
validate(data, yaml.safe_load(schema))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return {}
|
return {}
|
||||||
except ValidationError as ve:
|
except ValidationError as ve:
|
||||||
io.log_err("%s"%ve)
|
io.log_err(f"{ve}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
for key, value in data.items():
|
for key, value in data.items():
|
||||||
|
|
|
@ -11,3 +11,4 @@ tensorflow-gpu==2.4.0
|
||||||
tf2onnx==1.9.3
|
tf2onnx==1.9.3
|
||||||
tensorboardX
|
tensorboardX
|
||||||
crc32c
|
crc32c
|
||||||
|
jsonschema
|
||||||
|
|
|
@ -14,3 +14,4 @@ Flask==1.1.1
|
||||||
flask-socketio==4.2.1
|
flask-socketio==4.2.1
|
||||||
tensorboardX
|
tensorboardX
|
||||||
crc32c
|
crc32c
|
||||||
|
jsonschema
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue