Print the devices for which rendering threads have started; Prettier print of the model data

This commit is contained in:
cmdr2 2022-11-07 18:26:10 +05:30
parent 90b1609d4e
commit 67cca3bc00
2 changed files with 8 additions and 1 deletions

View File

@ -285,7 +285,12 @@ def load_model_ckpt():
thread_data.model_is_half = False
thread_data.model_fs_is_half = False
print('loaded', thread_data.ckpt_file, 'as', model.device, '->', modelCS.cond_stage_model.device, '->', thread_data.modelFS.device, 'using precision', thread_data.precision)
print(f'''loaded model
model file: {thread_data.ckpt_file}.ckpt
model.device: {model.device}
modelCS.device: {modelCS.cond_stage_model.device}
modelFS.device: {thread_data.modelFS.device}
using precision: {thread_data.precision}''')
def unload_filters():
if thread_data.model_gfpgan is not None:

View File

@ -440,5 +440,7 @@ if is_using_a_gpu and task_manager.is_alive(0) <= 0:
print('Add the line "@set CUDA_VISIBLE_DEVICES=N" where N is the GPUs to use to config.bat')
print('Add the line "CUDA_VISIBLE_DEVICES=N" where N is the GPUs to use to config.sh')
print('active devices', task_manager.get_devices())
# start the browser ui
import webbrowser; webbrowser.open('http://localhost:9000')