Skip to content

Conversation

@n719710930
Copy link

我发现frcnn_trainning.py中的numpy操作极大地影响了训练速度,而且会导致CPU利用率太高,所以我将其中绝大部分numpy操作改为了pytorch操作,在我的实验设置下提速10%左右,每个迭代由1.33 it/s 降低为 1.13it/s,任保留了作者之前的numpy写法,是可选择的。

我发现frcnn_trainning.py中的numpy操作极大地影响了训练速度,而且会导致CPU利用率太高,所以我将其中绝大部分numpy操作改为了pytorch操作,在我的实验设置下提速10%左右,每个迭代由1.33 it/s 降低为 1.13it/s
删除冗余代码
注释numpy操作,启用pytorch计算
@bubbliiiing
Copy link
Owner

我周末找个时间研究一哈。

@bubbliiiing
Copy link
Owner

Hello,我发现它在低版本的pytorch中会出现bug,我抓耳挠腮了😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants