AbstractPhil commited on
Commit
65436b1
·
verified ·
1 Parent(s): 165c0dc

anima_closeout v8: the un-masked smoke crash was ModuleNotFoundError: hyvideo — utils/patches.py imported hyvideo.text_encoder unconditionally at module level while CELL 0 (correctly) initializes only the ComfyUI submodule. Fixed in the fork (5f37138: guarded import, patch skipped when absent; verified by execution both ways). CELL 0 now asserts the guard is present before any spend.

Browse files
Files changed (1) hide show
  1. colab/anima_closeout.ipynb +5 -0
colab/anima_closeout.ipynb CHANGED
@@ -118,6 +118,11 @@
118
  "_src = (FORK / \"train.py\").read_text()\n",
119
  "assert \"bf16_master_weights\" in _src and \"run_seed\" in _src, \\\n",
120
  " \"fork main lacks the campaign patches (bf16_master_weights + seed)\"\n",
 
 
 
 
 
121
  "\n",
122
  "if not ANIMA.get(\"DEPS_DONE\"):\n",
123
  " sh(f\"pip install -q -r {FORK}/requirements.txt\")\n",
 
118
  "_src = (FORK / \"train.py\").read_text()\n",
119
  "assert \"bf16_master_weights\" in _src and \"run_seed\" in _src, \\\n",
120
  " \"fork main lacks the campaign patches (bf16_master_weights + seed)\"\n",
121
+ "# only ComfyUI is initialized above; the hyvideo patch import must be the\n",
122
+ "# guarded version (fork 5f37138) or train.py dies at import (~24s launcher\n",
123
+ "# crash, ModuleNotFoundError: hyvideo \u2014 the recorded exp004 + smoke killer)\n",
124
+ "assert \"_HAS_HYVIDEO\" in (FORK / \"utils\" / \"patches.py\").read_text(), \\\n",
125
+ " \"fork main lacks the guarded hyvideo import (utils/patches.py)\"\n",
126
  "\n",
127
  "if not ANIMA.get(\"DEPS_DONE\"):\n",
128
  " sh(f\"pip install -q -r {FORK}/requirements.txt\")\n",