mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-05 20:42:11 -07:00
added photos for thesis
This commit is contained in:
parent
5f6438c9e5
commit
0d8c41ebb5
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
import multiprocessing
|
||||
import os
|
||||
import json
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
|
@ -46,10 +47,10 @@ class InteractBase(object):
|
|||
self.process_messages_callbacks = {}
|
||||
|
||||
self.default_answers = {}
|
||||
answer_filename = 'workspace/interact/interact_dict.pkl'
|
||||
answer_filename = 'workspace/interact/interact_dict.json'
|
||||
if os.path.exists(answer_filename):
|
||||
with open(answer_filename, 'rb') as file:
|
||||
self.default_answers = pickle.load(file)
|
||||
with open(answer_filename, 'r') as file:
|
||||
self.default_answers = json.load(file)
|
||||
|
||||
def is_support_windows(self):
|
||||
return False
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import pickle
|
||||
import json
|
||||
import os
|
||||
|
||||
dictionary = {
|
||||
|
@ -51,8 +52,8 @@ dictionary = {
|
|||
}
|
||||
cmd = 'mkdir DeepFaceLab_Linux/workspace/interact'
|
||||
os.system(cmd)
|
||||
with open('DeepFaceLab_Linux/workspace/interact/interact_dict.pkl', 'wb') as handle:
|
||||
pickle.dump(dictionary, handle, protocol=4)
|
||||
with open('DeepFaceLab_Linux/workspace/interact/interact_dict.json', 'w') as handle:
|
||||
pickle.dump(dictionary, handle)
|
||||
|
||||
#with open('DeepFaceLab_Linux/workspace/interact/interact_dict.pkl', 'rb') as handle:
|
||||
# d = pickle.load(handle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue