Comments (6)
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.
from keras-frcnn.
Hi @vra
are you getting this exception
Could not load pretrained model weights. Weights can be found in the keras application folder https://github.com/fchollet/keras/tree/master/keras/applications
same problem happening with me. I think we need to start with pretrained models using
--input_weight_path
but I'm still unable to solve this problem. is there any solution you found?
Thanks
from keras-frcnn.
okay @vra,
Do you know how to train it using pretrained models like resnet50, I'm stuck in large training time.
could you help?
Thanks for your response.
from keras-frcnn.
Yes It's very slow to train the model. I use 8 2080Ti GPUs and I need almost 500 seconds to train one epoch! When I review the code, I found maybe the batchsize is too small, because the code here seems shows that only one sample is yielded at each time. Maybe you can try to improve the code near here to speed up your training. I searched before but I didn't figure a good solution yet. Some discussiosn at here and here may be useful for you.
from keras-frcnn.
thanks, it started predicting when I train it with more ephocs, but one more thing I need to know that How can it be easily useful for i3 CPU in production. I test it but it is too slow and taking something about 30 sec. to predict a single image.
is there any way to do fast prediction?
thanks
from keras-frcnn.
I think there are some solution to your situation:
- Use GPUs. You can buy a vps with GPUs on Google Cloud, AWS etc
- Use CPUs, but with smaller input size, e.g., change 512x512 to 256x256
- Use CPUs, but with less parameter settings, e.g., you can change to #num_ious to a smaller value thus it will be faster
- 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.
from keras-frcnn.
Related Issues (20)
- Error with get_data(input_path) function of simple_parser.py HOT 3
- Wrong batch normalization axis for classifier layers, using tf
- Please fix the code to print the number of training samples in line 112
- ValueError: Attempt to convert a value (None) with an unsupported type (<class 'NoneType'>) to a Tensor. HOT 4
- input image must be of non-zero size
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 3
- Error if there are a lot of boxes, i guess
- No detection result show
- Meaning of epoch_length HOT 1
- Where has the function `img_length_calc_function` used in the `calc_rpn` function been defined?
- Parallel Computing
- Working with custom model
- usage of measure_map HOT 1
- SyntaxError HOT 2
- Input 0 of layer "model" is incompatible with the layer HOT 3
- Help? mAP is not good.
- Clarification in Version of Python
- Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
- How to convert trained .hdf5 model to a single TensorFlow .pb file HOT 2
- Exception: index 1000 is out of bounds for axis 0 with size 1000 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-frcnn.