Google colaboratory 列车性能指标&;tensorflow 2中的目标检测期间未显示验证数据
我正在使用EfficientSet-d1在自定义数据集上训练对象检测模型。 我正在colab中使用tensorflow 2 我参考了以下教程 我使用以下代码进行模型培训:Google colaboratory 列车性能指标&;tensorflow 2中的目标检测期间未显示验证数据,google-colaboratory,tensorflow2.0,object-detection-api,loss,custom-training,Google Colaboratory,Tensorflow2.0,Object Detection Api,Loss,Custom Training,我正在使用EfficientSet-d1在自定义数据集上训练对象检测模型。 我正在colab中使用tensorflow 2 我参考了以下教程 我使用以下代码进行模型培训: !python model_main_tf2.py \ --pipeline_config_path=models/efficientdet_d1-round3/pipeline.config \ --model_dir=models/efficientdet_d1-round3 \ --logt
!python model_main_tf2.py \
--pipeline_config_path=models/efficientdet_d1-round3/pipeline.config \
--model_dir=models/efficientdet_d1-round3 \
--logtostderr
colab端子中的输出:
INFO:tensorflow:Step 100 per-step time 1.300s loss=1.238
I1008 07:51:04.238269 140334195148672 model_lib_v2.py:652] Step 100 per-step time 1.300s loss=1.238
INFO:tensorflow:Step 200 per-step time 1.142s loss=1.260
.....
我曾尝试使用以下命令启用tensorboard,但它不会通过colab打开,即使我打开了一个新网页&键入http://localhost:6006/
#method 1
%load_ext tensorboard
%tensorboard --logdir './models/efficientdet_d1-round3/train'
问题:
# method 2
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip -o ngrok-stable-linux-amd64.zip
LOG_DIR = "models/efficientdet_d1-round3/train" #"training/"
get_ipython().system_raw(
'tensorboard --logdir {} --host 0.0.0.0 --port 6006 &'
.format(LOG_DIR)
)
get_ipython().system_raw('./ngrok http 6006 &')
#The link to tensorboard.
#works after the training starts.
!curl -s http://localhost:4040/api/tunnels | python3 -c \
"import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])"