mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -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 multiprocessing
|
||||||
import os
|
import os
|
||||||
|
import json
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
@ -46,10 +47,10 @@ class InteractBase(object):
|
||||||
self.process_messages_callbacks = {}
|
self.process_messages_callbacks = {}
|
||||||
|
|
||||||
self.default_answers = {}
|
self.default_answers = {}
|
||||||
answer_filename = 'workspace/interact/interact_dict.pkl'
|
answer_filename = 'workspace/interact/interact_dict.json'
|
||||||
if os.path.exists(answer_filename):
|
if os.path.exists(answer_filename):
|
||||||
with open(answer_filename, 'rb') as file:
|
with open(answer_filename, 'r') as file:
|
||||||
self.default_answers = pickle.load(file)
|
self.default_answers = json.load(file)
|
||||||
|
|
||||||
def is_support_windows(self):
|
def is_support_windows(self):
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import pickle
|
import pickle
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
dictionary = {
|
dictionary = {
|
||||||
|
@ -51,8 +52,8 @@ dictionary = {
|
||||||
}
|
}
|
||||||
cmd = 'mkdir DeepFaceLab_Linux/workspace/interact'
|
cmd = 'mkdir DeepFaceLab_Linux/workspace/interact'
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
with open('DeepFaceLab_Linux/workspace/interact/interact_dict.pkl', 'wb') as handle:
|
with open('DeepFaceLab_Linux/workspace/interact/interact_dict.json', 'w') as handle:
|
||||||
pickle.dump(dictionary, handle, protocol=4)
|
pickle.dump(dictionary, handle)
|
||||||
|
|
||||||
#with open('DeepFaceLab_Linux/workspace/interact/interact_dict.pkl', 'rb') as handle:
|
#with open('DeepFaceLab_Linux/workspace/interact/interact_dict.pkl', 'rb') as handle:
|
||||||
# d = pickle.load(handle)
|
# d = pickle.load(handle)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue