question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No foreground is detected when testing

See original GitHub issue

Hi @kbardool , Thanks for share this useful code. I train the model using command like this:

python3 train_frcnn.py -p /path/to/VOCDevkit

After training for 100 epochs, I test trained model on VOC images:

python3 test_frcnn.py -p ../VOCdevkit/VOC2012/JPEGImages

However, The output is like this:

2007_000121.jpg                                           
Elapsed time = 0.6811630725860596                               
[]                         

After debug, I find testing images are all treated as background, i.e., the network classify them to bg class. Can you tell me what should I do to further solve this problem? Thanks 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
vracommented, Mar 14, 2019

Hi @Arham-Aalam, I finally figure out I got this exception because I changed default settings in keras_frcnn/config.py. When I reset the default settings and train after 100 epochs, I got output finally. Before that, only background is outputed. You can try to train more epochs and see if everything is okay. I have trained almost 1000 epochs and I plan to share the checkpoints in the future.

0reactions
vracommented, Mar 16, 2019

I think there are some solution to your situation:

  1. Use GPUs. You can buy a vps with GPUs on Google Cloud, AWS etc
  2. Use CPUs, but with smaller input size, e.g., change 512x512 to 256x256
  3. Use CPUs, but with less parameter settings, e.g., you can change to #num_ious to a smaller value thus it will be faster
  4. Use CPUs, but use ConvNet Prune techniques to make a network smaller.

Solution 3 need more understanding of details of code in this project, Solution 4 need more knowledge about network pruning.

Since discussion going on here is no relations with original issue, so I will close this issue and any further disscussion should be opened in a new place.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Detect Android App Foreground Status - Medium
In this article, we're going to learn how to detect if the app is in the foreground or background. Along with that, we'll...
Read more >
check android application is in foreground or not? [duplicate]
I don't understand what you want, but You can detect currently foreground/background application with ActivityManager.
Read more >
Foreground services - Android Developers
A music player app that plays music in a foreground service. The notification might show the current song that is being played. ·...
Read more >
Testing When Mobile Apps Go to Background and Come Back ...
This is not detected by the iMPAcT tool because it does not close the app and opens the app again when it tests...
Read more >
Foreground detection - Wikipedia
Foreground detection is one of the major tasks in the field of computer vision and image processing whose aim is to detect changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found