mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-16 10:03:41 -07:00
check if pkl exist to apply modifications
This commit is contained in:
parent
3dc9366d18
commit
a2b8f3c5a2
1 changed files with 6 additions and 6 deletions
|
@ -51,9 +51,9 @@ dictionary = {
|
||||||
with open('/home/deepfake/interact_dict.pkl', 'wb') as handle:
|
with open('/home/deepfake/interact_dict.pkl', 'wb') as handle:
|
||||||
pickle.dump(dictionary, handle, protocol=4)
|
pickle.dump(dictionary, handle, protocol=4)
|
||||||
|
|
||||||
with open('/home/deepfake/interact_dict.pkl', 'rb') as handle:
|
#with open('/home/deepfake/interact_dict.pkl', 'rb') as handle:
|
||||||
d = pickle.load(handle)
|
# d = pickle.load(handle)
|
||||||
s = "Use interactive merger"
|
#s = "Use interactive merger"
|
||||||
res = dict(filter(lambda item: s in item[0], d.items()))
|
#res = dict(filter(lambda item: s in item[0], d.items()))
|
||||||
|
#
|
||||||
print(list(res.values())[0])
|
#print(list(res.values())[0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue