mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Fix indent
This commit is contained in:
parent
4245e90761
commit
7e5c3c9b83
1 changed files with 5 additions and 5 deletions
|
@ -262,11 +262,11 @@ class ModelBase(object):
|
||||||
if self.device_config.cpu_only:
|
if self.device_config.cpu_only:
|
||||||
model_summary_text += [f'=={"Using device": >{width_name}}: {"CPU": <{width_value}}=='] # cpu_only
|
model_summary_text += [f'=={"Using device": >{width_name}}: {"CPU": <{width_value}}=='] # cpu_only
|
||||||
else:
|
else:
|
||||||
for idx in self.device_config.gpu_idxs:
|
for idx in self.device_config.gpu_idxs:
|
||||||
model_summary_text += [f'=={"Device index": >{width_name}}: {idx: <{width_value}}=='] # GPU hardware device index
|
model_summary_text += [f'=={"Device index": >{width_name}}: {idx: <{width_value}}=='] # GPU hardware device index
|
||||||
model_summary_text += [f'=={"Name": >{width_name}}: {nnlib.device.getDeviceName(idx): <{width_value}}=='] # GPU name
|
model_summary_text += [f'=={"Name": >{width_name}}: {nnlib.device.getDeviceName(idx): <{width_value}}=='] # GPU name
|
||||||
vram_str = f'{nnlib.device.getDeviceVRAMTotalGb(idx):.2f}GB' # GPU VRAM - Formated as #.## (or ##.##)
|
vram_str = f'{nnlib.device.getDeviceVRAMTotalGb(idx):.2f}GB' # GPU VRAM - Formated as #.## (or ##.##)
|
||||||
model_summary_text += [f'=={"VRAM": >{width_name}}: {vram_str: <{width_value}}==']
|
model_summary_text += [f'=={"VRAM": >{width_name}}: {vram_str: <{width_value}}==']
|
||||||
model_summary_text += [f'=={" "*width_total}==']
|
model_summary_text += [f'=={" "*width_total}==']
|
||||||
model_summary_text += [f'=={"="*width_total}==']
|
model_summary_text += [f'=={"="*width_total}==']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue