Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
CenterFace_pytorch
Commits
35e22e0a
Commit
35e22e0a
authored
Nov 16, 2023
by
chenych
Browse files
Add centerface-pytorch.ipynb
parent
d33048cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
centerface-pytorch.ipynb
centerface-pytorch.ipynb
+5
-7
No files found.
centerface-pytorch.ipynb
View file @
35e22e0a
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# 执行以下代码,将预置标注数据转换成coco形式\n",
"# 执行以下代码,将预置标注数据转换成coco形式\n",
"!python
./
datasets/gen_data.py"
"!python
3
datasets/gen_data.py"
]
]
},
},
{
{
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# 单卡训练\n",
"# 单卡训练\n",
"!
bash ./
src/
tr
ain.
sh
"
"!
python3
src/
m
ain.
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/
tr
ain
_multi.sh
"
"!
python3
src/
m
ain
.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的图像"
]
]
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment