Skip to content

Commit 2426893

Browse files
committed
fix quick-start notebook
1 parent 6347a7d commit 2426893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: scripts/taming-transformers.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"outputId": "e6e1ce0f-bce9-4ebe-a852-95003ca7b630"
123123
},
124124
"source": [
125-
"%pip install omegaconf>=2.0.0 pytorch-lightning>=1.0.8\n",
125+
"%pip install omegaconf>=2.0.0 pytorch-lightning>=1.0.8 einops transformers\n",
126126
"import sys\n",
127127
"sys.path.append(\".\")"
128128
],
@@ -461,7 +461,7 @@
461461
"c_code, c_indices = model.encode_to_c(segmentation)\n",
462462
"print(\"c_code\", c_code.shape, c_code.dtype)\n",
463463
"print(\"c_indices\", c_indices.shape, c_indices.dtype)\n",
464-
"assert c_code.shape[2]*c_code.shape[3] == c_indices.shape[1]\n",
464+
"assert c_code.shape[2]*c_code.shape[3] == c_indices.shape[0]\n",
465465
"segmentation_rec = model.cond_stage_model.decode(c_code)\n",
466466
"show_segmentation(torch.softmax(segmentation_rec, dim=1))"
467467
],

0 commit comments

Comments
 (0)