MaskTextSpotter | A PyTorch implementation of Mask TextSpotter | Machine Learning library
kandi X-RAY | MaskTextSpotter Summary
kandi X-RAY | MaskTextSpotter Summary
This is the code of "Mask TextSpotter: An End-to-End Trainable Neural Network for Spotting Text with Arbitrary Shapes" (TPAMI version). It is an extension of the ECCV version while sharing the same title. For more details, please refer to our TPAMI paper. This repo is inherited from maskrcnn-benchmark and follows the same license.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Evaluate the method in the given method
- The area of the bounding box
- Decode a byte string
- Decode bounding boxes
- Compute one - hot embedding
- Do beam search
- Convert a number to character
- Performs beam search step
- Train detection model
- Make data loader
- Runs inference on a model
- Prepare results for prediction
- Compute the predicted boxes
- Crop the bounding box
- Transpose the image
- Compute the predicted masks
- Compute the prediction
- Compute the RPNR model
- Forward the given boxes
- Perform the forward computation
- Returns a new bounding box with the given size
- Compute the classifier
- Forward feature extraction
- Create data loader
- Gets a Dataset
- Prepare results for evaluation
- Convert the image to a numpy array
- Retrieve all C ++ extensions
MaskTextSpotter Key Features
MaskTextSpotter Examples and Code Snippets
Community Discussions
Trending Discussions on MaskTextSpotter
QUESTION
I am working on a repo that make use of the maskrcnn_benchmark repo. I have extensively, explored the bench-marking repo extensively for the cause of its slower performance on a cpu with respect to enter link description here.
In order to create a benchmark for the individual forward passes I have put a time counter for each part and it gives me the time required to calculate each component. I have had a tough time exactly pinpointing as to the slowest component of the entire architecture.I believe it to be BottleneckWithFixedBatchNorm class in the maskrcnn_benchmark/modeling/backbone/resnet.py
file.
I will really appreciate any help in localisation of the biggest bottle neck in this architecture.
...ANSWER
Answered 2019-Nov-24 at 19:27I have faced the same problem, the best possible solution for the same is to look inside the main code, go through the forward pass of each module and have a timer setup to log the time that is spent in the computations of each module. How we worked in it was to create an architecture where we create the time logger for each class, therefore every instance of the class will now be logging its time of execution, after through comparison, atleast in our case we have found that the reason for the delay was the depth of the Resnet module, (which given the computational cost of resnet is not a surprising factor at all, the only solution to the same is more palatalization so either ensure a bigger GPU for performing the task or reduce the depth of the Resnet network ).
I must inform that the maskrcnn_benchmark has been deprecated and an updated version of the same is available in the form of detectron2. Consider moving your code for significant speed improvements in the architecture.
BottleneckWithFixedBatchNorm is not the most expensive operation in the architecture and certainly not creating the bottleneck as all the operations instead of the name. The class isn't as computationally expensive and is computed in parallel even on a lower end CPU machine (at least in the inference stage).
An example of tracking better the performance of each module can be found with the code taken from the path : maskrcnn_benchmark/modeling/backbone/resnet.py
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MaskTextSpotter
You can use MaskTextSpotter like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page