Skip to content

Commit

Permalink
ok, NOW prompt lag is in the notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Oct 8, 2022
1 parent f3301d3 commit bf16c0c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Video_Killed_The_Radio_Star_Defusion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit bf16c0c

Please sign in to comment.