DeepFaceLab icon indicating copy to clipboard operation
DeepFaceLab copied to clipboard

When merging with this parameter: --force-gpu-idxs 0 get wrong message

Open dsyrock opened this issue 4 years ago • 2 comments

Traceback (most recent call last): File "/content/drive/My Drive/DeepFaceLab2/DeepFaceLab_Colab/mainscripts/Merger.py", line 53, in main cpu_only=cpu_only) File "/content/drive/My Drive/DeepFaceLab2/DeepFaceLab_Colab/models/ModelBase.py", line 162, in init if not cpu_only else nn.DeviceConfig.CPU() File "/content/drive/My Drive/DeepFaceLab2/DeepFaceLab_Colab/core/leras/nn.py", line 294, in GPUIndexes devices = Devices.getDevices().get_devices_from_index_list(indexes) File "/content/drive/My Drive/DeepFaceLab2/DeepFaceLab_Colab/core/leras/device.py", line 73, in get_devices_from_index_list if device.index in idx_list: TypeError: 'in ' requires string as left operand, not int

dsyrock avatar Jul 20 '21 04:07 dsyrock

Did you ever find the answer? If so, would you mind sharing it and closing this issue?

joolstorrentecalo avatar Jun 08 '23 22:06 joolstorrentecalo

There's a bug in the main.py script.

Line 176 - https://github.com/iperov/DeepFaceLab/blob/46fc2397c582b9fc375a023418257924112e292b/main.py#L176 force_gpu_idxs = arguments.force_gpu_idxs,

needs to be like line 130 - https://github.com/iperov/DeepFaceLab/blob/46fc2397c582b9fc375a023418257924112e292b/main.py#L130C18-L130C154 'force_gpu_idxs' : [ int(x) for x in arguments.force_gpu_idxs.split(',') ] if arguments.force_gpu_idxs is not None else None,

After updating my file, this parameter starts working properly for me

gteachey avatar Jul 25 '23 05:07 gteachey