未验证 提交 76f0eeae 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix yolov3 cpu (#4122)

上级 9e0ab0b2
...@@ -77,8 +77,8 @@ def train(): ...@@ -77,8 +77,8 @@ def train():
loss = model.loss() loss = model.loss()
loss.persistable = True loss.persistable = True
devices_num = get_device_num() devices_num = get_device_num() if cfg.use_gpu else 1
print("Found {} CUDA devices.".format(devices_num)) print("Found {} CUDA/CPU devices.".format(devices_num))
learning_rate = cfg.learning_rate learning_rate = cfg.learning_rate
boundaries = cfg.lr_steps boundaries = cfg.lr_steps
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册