-
Notifications
You must be signed in to change notification settings - Fork 62
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
assert torch.cuda.is_available() ! it will be work without GPU? #20
Comments
Hi, thank you for your interest. For training, I do not intend to add support for CPU since training on CPU will be super slow and I guess no one will try to do it.
I'm afraid I can't understand it. I believe our code runs on colored images. Could you give the error message if you are facing an error? |
Thank you for your reply.
do you have any idea about this type of error? |
Hello,
|
Hello, Could you help me to train either in CPU (although if it will spend a lot of time) or with my actual gpu? |
Hi, Given that your GPU has only 1G memory, it would be challenging to fit the model into the memory. I recommend you try to use Google Colab Notebook, which gives you a free 4GB GPU. Please check the tutorial here for Google Colab Notebooks. Alternatively, you can use Kaggle notebooks, which sometimes provide you a free P100 GPU, which is powerful enough to train RAPiD. Training on the CPU could cost more than 20 days for COCO and fisheye datasets. If you want to do it anyway, please let me know and I can provide a CPU training script in several days. |
thank you so much for your response. |
No problem at all. If you want to train using gray images, you need to modify the code here Line 47 in e56ac87
to ConvBnLeaky(1,32,k=3,s=1) .
However, using gray instead of RGB almost do not reduce the model size because it only affects the very first layer, which is very lightweight compared to the whole model. An effective way to reduce model size (but sacrificing some accuracy) is to use half precision (ie, float 16) instead of float32. To do this, please try
|
thank you ! |
I looked at the two possibilities (google colab and kaggle), they are very very interesting.To test your code, using the GPUs provided, the execution is very fast. On the other hand, for training, there is the problem of disk space provided by the two platforms in order to load the trainer2017 images which has 18gb. I don't see how I can load it in order to start training.
…________________________________
De : Zhihao Duan ***@***.***>
Envoyé : vendredi 4 juin 2021 15:27
À : duanzhiihao/RAPiD ***@***.***>
Cc : RedOne88 ***@***.***>; Author ***@***.***>
Objet : Re: [duanzhiihao/RAPiD] assert torch.cuda.is_available() ! it will be work without GPU? (#20)
No problem at all.
If you want to train using gray images, you need to modify the code here
https://github.com/duanzhiihao/RAPiD/blob/e56ac87b0422d98f2942dbfbc64b745a3a3149ae/models/backbones.py#L47
to ConvBnLeaky(1,32,k=3,s=1).
However, using gray instead of RGB almost do not reduce the model size because it only affects the very first layer, which is very lightweight compared to the whole model.
An effective way to reduce model size (but sacrificing some accuracy) is to use half precision (ie, float 16) instead of float32. To do this, please try
model = model.half()
x = x.half()
y = model(x)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#20 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHLGUS5DXZJHTUW7SOHNDD3TRDWEZANCNFSM433ZD57A>.
|
Hello,I was able to solve this problem. The Coco image database is already online.
…________________________________
De : Red Moub ***@***.***>
Envoyé : mercredi 9 juin 2021 08:43
À : duanzhiihao/RAPiD ***@***.***>
Objet : RE: [duanzhiihao/RAPiD] assert torch.cuda.is_available() ! it will be work without GPU? (#20)
I looked at the two possibilities (google colab and kaggle), they are very very interesting.To test your code, using the GPUs provided, the execution is very fast. On the other hand, for training, there is the problem of disk space provided by the two platforms in order to load the trainer2017 images which has 18gb. I don't see how I can load it in order to start training.
________________________________
De : Zhihao Duan ***@***.***>
Envoyé : vendredi 4 juin 2021 15:27
À : duanzhiihao/RAPiD ***@***.***>
Cc : RedOne88 ***@***.***>; Author ***@***.***>
Objet : Re: [duanzhiihao/RAPiD] assert torch.cuda.is_available() ! it will be work without GPU? (#20)
No problem at all.
If you want to train using gray images, you need to modify the code here
https://github.com/duanzhiihao/RAPiD/blob/e56ac87b0422d98f2942dbfbc64b745a3a3149ae/models/backbones.py#L47
to ConvBnLeaky(1,32,k=3,s=1).
However, using gray instead of RGB almost do not reduce the model size because it only affects the very first layer, which is very lightweight compared to the whole model.
An effective way to reduce model size (but sacrificing some accuracy) is to use half precision (ie, float 16) instead of float32. To do this, please try
model = model.half()
x = x.half()
y = model(x)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#20 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHLGUS5DXZJHTUW7SOHNDD3TRDWEZANCNFSM433ZD57A>.
|
On the other hand, we run the program on kaggle and activate the GPU, it worked at the beginning, then it spits with this error:
I believe there is an overflow of the size of the boxes! but I don't know where it comes from? |
It seems to be related to the COCO dataset format. Please check #11 to see if that solves your problem. |
effectively it worked, but after 2 hours of training, it spat! here is the error message:
did you have any idea on the source of the error ! |
The error tells that the input is a gray-scale image, but the network expects an RGB image. Did you made any change to the Line 136 in e56ac87
|
Regarding the training with COCO, I did not manage to finish it, on kaggle each time the site crashes after 25 hours of execution. My idea is to build my own model with your algorithm. |
Yes, as long as you start from the pre-trained model and use a small learning rate. |
Hello, |
Please keep me informed if you have any idea |
Hello Sir, |
Hi, and thanks for your code.
I have a question, can your code work without GPU, with CPU!
I can't seem to used the code, with this current version! I have always this error :
Regarding the image basis, your code is able to run on fisheye images in grayscale and not in color.
thank you in advance for your reply !
The text was updated successfully, but these errors were encountered: