Commit 35e22e0a authored by chenych's avatar chenych
Browse files

Add centerface-pytorch.ipynb

parent d33048cd
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# 执行以下代码,将预置标注数据转换成coco形式\n", "# 执行以下代码,将预置标注数据转换成coco形式\n",
"!python ./datasets/gen_data.py" "!python3 datasets/gen_data.py"
] ]
}, },
{ {
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# 单卡训练\n", "# 单卡训练\n",
"!bash ./src/train.sh" "!python3 src/main.py --input_h 640 --input_w 640 --batch_size 8 --lr 5e-4 --data_dir datasets/"
] ]
}, },
{ {
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# 多卡训练(需要2个加速卡)\n", "# 多卡训练(需要2个加速卡)\n",
"!bash ./src/train_multi.sh" "!python3 src/main.py --input_h 640 --input_w 640 --batch_size 8 --lr 5e-4 --data_dir datasets/ --gpus 0,1"
] ]
}, },
{ {
...@@ -216,10 +216,8 @@ ...@@ -216,10 +216,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"!cd src/lib/external/\n", "!bash src/lib/external/make.sh\n",
"!bash make.sh\n", "!python3 src/test_wider_face.py\n",
"!cd ../../\n",
"!python3 test_wider_face.py\n",
"# 执行完成后会在当前目录下生成draw_img.jpg的图像" "# 执行完成后会在当前目录下生成draw_img.jpg的图像"
] ]
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment