diff --git a/Video_Killed_The_Radio_Star_Defusion.ipynb b/Video_Killed_The_Radio_Star_Defusion.ipynb index f568367..60f7182 100644 --- a/Video_Killed_The_Radio_Star_Defusion.ipynb +++ b/Video_Killed_The_Radio_Star_Defusion.ipynb @@ -799,6 +799,8 @@ " archive_images(i)\n", " print(\"archival process complete\")\n", "\n", + "prompt_lag = False # @param {type:'boolean'}\n", + "\n", "\n", "theme_prompt = storyboard.params.theme_prompt\n", "display_frames_as_we_get_them = storyboard.params.display_frames_as_we_get_them\n", @@ -814,16 +816,10 @@ " )\n", " lyric = rec['prompt']\n", " prompt = f\"{lyric}, {theme_prompt}\"\n", + " if prompt_lag and (idx > 0):\n", + " rec_prev = prompt_starts[idx -1]\n", + " prompt = f\"{rec_prev['prompt']}, {prompt}\"\n", " if rec.get('frame0_fpath') is None:\n", - " init_image = list(get_image_for_prompt(\n", - " prompt, \n", - " height=height,\n", - " width=width,\n", - " )\n", - " )[0]\n", - " # this shouldn't be necessary, but is a consequence of \n", - " # the globbing thing we're doing atm\n", - " if 'anchor' not in str(rec.get('frame0_fpath')):\n", " rec['frame0_fpath'] = save_frame(\n", " init_image,\n", " idx,\n",