Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你们这个代码不支持gpu? #6

Open
MtYCNN opened this issue Mar 22, 2023 · 4 comments
Open

你们这个代码不支持gpu? #6

MtYCNN opened this issue Mar 22, 2023 · 4 comments

Comments

@MtYCNN
Copy link

MtYCNN commented Mar 22, 2023

你们的代码为什么运行起来这么慢,生成一张海报要30多秒。看了看基本没用上GPU啊

@chuhaojin
Copy link
Owner

支持gpu的,或许看看是否pytorch版本的问题?在你的环境下运行torch.cuda.is_available()看看是否使用了GPU?

@MtYCNN
Copy link
Author

MtYCNN commented Mar 22, 2023

测试了GPU可用。pytorch也没问题,也是GPU版本,运行别的程序都没问题。。。但是一跑您这个就很慢
我是用的你们提供的run.sh脚本,我看了一下计算NMS那里特别慢,假如有五个语句,每个语句进行一次NMS的时间是6、7秒,这就要30多秒了。。。。。
但是我测试你们的quick_start.py程序的时候就比较快
请问这是什么原因呢

@chuhaojin
Copy link
Owner

quick_start.py也是基于这个repo代码搭建的,没什么优化。。或许你看看是不是图像的尺寸太大了,如果图像很大的话就会很慢。也可以再检查一下版本问题和环境配置。。

@MtYCNN
Copy link
Author

MtYCNN commented Mar 22, 2023

quick_start.py也是基于这个repo代码搭建的,没什么优化。。或许你看看是不是图像的尺寸太大了,如果图像很大的话就会很慢。也可以再检查一下版本问题和环境配置。。

你们这个不是默认会resize到300*400分辨率吗,而且我看了一下,感觉和quick_start.py里面下载的图片的尺寸差不多啊。。。。。

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

No branches or pull requests

2 participants