-
Notifications
You must be signed in to change notification settings - Fork 6
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
Regarding the execution time and to detect only the desired labels. #3
Comments
Hi @JoseAntonyS, thanks for your comment. Although I did not modify the original repo that much, execution time is not that bad, I needed to add the visualization part only. Anyway, I think the model is already trained to detect 20 labels. So, either you need to train a new model with your specific labeled dataset, or you can simply change the labels that you don't need to zero after detecting with the pretrained model.
I am not sure if this code will work exactly, you need to do some dimension check and something. After you remove the un-needed labels, you can also re-label your specific labels same way. Hope that helps. |
I appreciate your kind response. will check this. Also, I found there is a bug in the code , in the imagereader.py. please look into it. line160. At first, I was unable to run the code, after changing it to "images.append(data_dir + "" + image)" . the code was error free. |
I guess that's their dataset format in CIHP, so they assume that there is a "image" folder by default. Glad that it worked for you. |
Hi Minar, I am again stuck with another issue. I can only run the test_pgn.py using cpu. When I set the environment to '0' which refers to my GPU, the execution gets interrupted and i get the following error. Did you come across any such issue? |
Hi @JoseAntonyS , yes this is out of memory issue. Usually it resolves if you make your batch size smaller. You can also include all your available gpus in visible cuda devices as in 0,1,2,3 (if there are 4 gpus for example, can be less also). Hope that helps. Thanks. |
Yeah Minar, I had pointed the gpu in the code |
Is it running now? You can make the batch size really small e.g. 1 or 2, if it doesn't. GPUs are supposed to make program faster, but there are limits how much computations can be done in GPU. |
Hi minar, This is really supercool. I was very worried about the speed from the original repo's code. Hope this will be faster than that. Also how do i set only the desired labels to be predicted and segemented. For eg, the older model tries to segment the all the 20 attributes in my test image, where it confuses with the subjects and segments inappropriately. I need to detect upper clothes, pants, hands, legs and head. If there are any solutions to this, please suggest. Thanks in advance.
The text was updated successfully, but these errors were encountered: