This commit is contained in:
cafeai 2022-12-01 05:10:21 +09:00
parent fb75cbe029
commit 1074bd6f3b
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ def main():
if global_step % args.image_log_steps == 0:
if rank == 0:
# get prompt from random batch
prompt = tokenizer.decode(batch['tokens'][random.randint(0, len(batch['tokens'])-1)].tolist())
prompt = tokenizer.decode(batch['tokens'][random.randint(0, len(batch['tokens'])-1)])
if args.image_log_scheduler == 'DDIMScheduler':
print('using DDIMScheduler scheduler')