mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
Merge e40201f15f
into e4b7543ffa
This commit is contained in:
commit
7dea9f0496
3 changed files with 35 additions and 32 deletions
|
@ -68,6 +68,8 @@ class Devices(object):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_devices_from_index_list(self, idx_list):
|
def get_devices_from_index_list(self, idx_list):
|
||||||
|
if not isinstance(idx_list, list):
|
||||||
|
idx_list = [int(idx.strip()) for idx in idx_list.split(',')]
|
||||||
result = []
|
result = []
|
||||||
for device in self.devices:
|
for device in self.devices:
|
||||||
if device.index in idx_list:
|
if device.index in idx_list:
|
||||||
|
|
2
main.py
2
main.py
|
@ -1,4 +1,5 @@
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
# Fix for linux
|
# Fix for linux
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
multiprocessing.set_start_method("spawn")
|
multiprocessing.set_start_method("spawn")
|
||||||
|
@ -149,7 +150,6 @@ if __name__ == "__main__":
|
||||||
p.add_argument('--cpu-only', action="store_true", dest="cpu_only", default=False, help="Train on CPU.")
|
p.add_argument('--cpu-only', action="store_true", dest="cpu_only", default=False, help="Train on CPU.")
|
||||||
p.add_argument('--force-gpu-idxs', dest="force_gpu_idxs", default=None, help="Force to choose GPU indexes separated by comma.")
|
p.add_argument('--force-gpu-idxs', dest="force_gpu_idxs", default=None, help="Force to choose GPU indexes separated by comma.")
|
||||||
p.add_argument('--silent-start', action="store_true", dest="silent_start", default=False, help="Silent start. Automatically chooses Best GPU and last used model.")
|
p.add_argument('--silent-start', action="store_true", dest="silent_start", default=False, help="Silent start. Automatically chooses Best GPU and last used model.")
|
||||||
|
|
||||||
p.add_argument('--execute-program', dest="execute_program", default=[], action='append', nargs='+')
|
p.add_argument('--execute-program', dest="execute_program", default=[], action='append', nargs='+')
|
||||||
p.set_defaults(func=process_train)
|
p.set_defaults(func=process_train)
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
tqdm
|
|
||||||
numpy==1.19.3
|
|
||||||
numexpr
|
|
||||||
h5py==2.10.0
|
|
||||||
opencv-python==4.1.0.25
|
|
||||||
ffmpeg-python==0.1.17
|
|
||||||
scikit-image==0.14.2
|
|
||||||
scipy==1.4.1
|
|
||||||
colorama
|
colorama
|
||||||
tensorflow-gpu==2.4.0
|
cython==0.29.25
|
||||||
|
ffmpeg-python==0.1.17
|
||||||
|
h5py==2.10.0
|
||||||
|
numpy==1.20.1
|
||||||
|
numexpr
|
||||||
|
opencv-python==4.1.2.30
|
||||||
pyqt5
|
pyqt5
|
||||||
|
scikit-image==0.18.3
|
||||||
|
scipy==1.10.1
|
||||||
|
tensorflow-gpu==2.4.1
|
||||||
tf2onnx==1.9.3
|
tf2onnx==1.9.3
|
||||||
|
tqdm
|
Loading…
Add table
Add a link
Reference in a new issue