Skip to content

Commit 92f13c8

Browse files
committed
fix comments
Signed-off-by: binliu <binliu@nvidia.com>
1 parent 9c370fa commit 92f13c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hugging_face/finetune_vista3d_for_hugging_face_pipeline.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
},
252252
{
253253
"cell_type": "code",
254-
"execution_count": null,
254+
"execution_count": 8,
255255
"metadata": {},
256256
"outputs": [
257257
{
@@ -312,7 +312,7 @@
312312
},
313313
{
314314
"cell_type": "code",
315-
"execution_count": null,
315+
"execution_count": 9,
316316
"metadata": {},
317317
"outputs": [],
318318
"source": [
@@ -325,7 +325,7 @@
325325
"\n",
326326
"config = VISTA3DConfig()\n",
327327
"vista3d_hf_model = VISTA3DModel(config)\n",
328-
"vista3d_hf_model.network.load_state_dict(torch.load(fine_tuned_model_path))\n",
328+
"vista3d_hf_model.network.load_state_dict(torch.load(fine_tuned_model_path, weights_only=True))\n",
329329
"# Save model to hugging face format so that it can be loaded by the from_pretrained API\n",
330330
"hugging_face_model_path = os.path.join(root_dir, \"huggging_face\")\n",
331331
"os.makedirs(hugging_face_model_path, exist_ok=True)\n",

0 commit comments

Comments
 (0)