Skip to content

Commit 4896dbb

Browse files
authored
fix quantization dataset in dynamicrafter (#2410)
1 parent 94d6044 commit 4896dbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notebooks/dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,16 +1094,16 @@
10941094
" modified_model = CompiledModelDecorator(original_diffusion_model, keep_prob=1)\n",
10951095
" model.model.diffusion_model = CModelWrapper(modified_model, model.model.diffusion_model.out_channels)\n",
10961096
" \n",
1097-
" dataset = datasets.load_dataset(\"jovianzm/Pexels-400k\", split=\"train\", streaming=True).shuffle(seed=42).take(subset_size)\n",
1097+
" dataset = datasets.load_dataset(\"google-research-datasets/conceptual_captions\", trust_remote_code=True, split=\"train\", streaming=True).shuffle(seed=42).take(subset_size)\n",
10981098
" \n",
10991099
" pbar = tqdm(total=subset_size)\n",
11001100
" channels = model.model.diffusion_model.out_channels\n",
11011101
" frames = model.temporal_length\n",
11021102
" h, w = 256 // 8, 256 // 8\n",
11031103
" noise_shape = [1, channels, frames, h, w]\n",
11041104
" for batch in dataset:\n",
1105-
" prompt = batch[\"title\"]\n",
1106-
" image_path = batch[\"thumbnail\"]\n",
1105+
" prompt = batch[\"caption\"]\n",
1106+
" image_path = batch[\"image_url\"]\n",
11071107
" image = download_image(image_path)\n",
11081108
" if image is None:\n",
11091109
" continue\n",

0 commit comments

Comments
 (0)