Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
camenduru authored Nov 22, 2023
1 parent 3b5b720 commit 533b5e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
"!ln -s /content/generative-models/scripts/util/detection/p_head_v1.npz /content/scripts/util/detection/p_head_v1.npz\n",
"!ln -s /content/generative-models/scripts/util/detection/w_head_v1.npz /content/scripts/util/detection/w_head_v1.npz\n",
"\n",
"import sys, os, math, torch, cv2\n",
"import sys\n",
"sys.path.append(\"generative-models\")\n",
"\n",
"import os, math, torch, cv2\n",
"from omegaconf import OmegaConf\n",
"from glob import glob\n",
"from pathlib import Path\n",
Expand All @@ -43,8 +46,6 @@
"from torchvision.transforms import functional as TF\n",
"from sgm.util import instantiate_from_config\n",
"\n",
"sys.path.append(\"generative-models\")\n",
"\n",
"def load_model(config: str, device: str, num_frames: int, num_steps: int):\n",
" config = OmegaConf.load(config)\n",
" config.model.params.conditioner_config.params.emb_models[0].params.open_clip_embedding_config.params.init_device = device\n",
Expand Down

0 comments on commit 533b5e6

Please sign in to comment.