Skip to content

Commit

Permalink
fix missing lines in outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Sep 11, 2022
1 parent 5e43372 commit 0ab5a36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/dream.py
Expand Up @@ -321,6 +321,7 @@ def image_writer(image, seed, upscaled=False):
print('Outputs:')
log_path = os.path.join(current_outdir, 'dream_log.txt')
write_log_message(results, log_path)
print()

print('goodbye!')

Expand Down Expand Up @@ -371,7 +372,8 @@ def write_log_message(results, log_path):
log_lines = [f'{path}: {prompt}\n' for path, prompt in results]
for l in log_lines:
output_cntr += 1
print(output_cntr)
print(f'[{output_cntr}] {l}',end='')


with open(log_path, 'a', encoding='utf-8') as file:
file.writelines(log_lines)
Expand Down

0 comments on commit 0ab5a36

Please sign in to comment.