Skip to content

Commit 2de72e3

Browse files
committed
Fix #1078
1 parent 6bddef7 commit 2de72e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

efficientnetv2/tutorial.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
" ckpt_path = os.path.join(os.getcwd(), m)\n",
8585
" return ckpt_path"
8686
],
87-
"execution_count": 1,
87+
"execution_count": null,
8888
"outputs": []
8989
},
9090
{
@@ -175,7 +175,7 @@
175175
"image = tf.io.read_file(image_file)\n",
176176
"image = preprocessing.preprocess_image(\n",
177177
" image, cfg.eval.isize, is_training=False, augname=cfg.data.augname)\n",
178-
"logits = model(tf.expand_dims(image, 0), False)[0]\n",
178+
"logits = model(tf.expand_dims(image, 0), False)\n",
179179
"\n",
180180
"# Output classes and probability\n",
181181
"pred = tf.keras.layers.Softmax()(logits)\n",
@@ -187,7 +187,7 @@
187187
"from IPython import display\n",
188188
"display.display(display.Image(image_file))"
189189
],
190-
"execution_count": 79,
190+
"execution_count": null,
191191
"outputs": [
192192
{
193193
"output_type": "stream",
@@ -242,7 +242,7 @@
242242
"source": [
243243
"!python main_tf2.py --mode=traineval --model_name=efficientnetv2-b0 --dataset_cfg=cifar10Ft --model_dir={MODEL}_finetune --hparam_str=\"train.ft_init_ckpt={MODEL},runtime.strategy=gpus,train.batch_size=64\"\n"
244244
],
245-
"execution_count": 87,
245+
"execution_count": null,
246246
"outputs": [
247247
{
248248
"output_type": "stream",

0 commit comments

Comments
 (0)