Skip to content

Commit

Permalink
compatible fix for #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Kahsolt committed Mar 30, 2023
1 parent 2a0b796 commit cdac6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prompt_travel.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_conds_with_caching(function, required_prompts, steps, cache):
seeds = p.all_seeds[n * p.batch_size:(n + 1) * p.batch_size]
subseeds = p.all_subseeds[n * p.batch_size:(n + 1) * p.batch_size]

if p.scripts is not None:
if p.scripts is not None and hasattr(p, 'before_process_batch'):
p.scripts.before_process_batch(p, batch_number=n, prompts=prompts, seeds=seeds, subseeds=subseeds)

if len(prompts) == 0:
Expand Down

0 comments on commit cdac6a2

Please sign in to comment.