Comments (4)
Sorry for the late reply. I was on vacation.
Yes. This was intended.
center_scores
is used for finding a rectangle lying in the center of the image.
I simply designed center_scores
as a vector array for how far the center points of the squares are from the center point of the image.
square_centers
are the center points of all detected rectangles and centers
(should be center 😄 ) is the center of the image.
As shown in
Lines 461 to 466 in 53a0161
NOTE: center_scores
is not a scala value.
from mlsd.
It has been fixed #22.
Line 465 in 1c25206
Thanks!
from mlsd.
thank to reply
But if center_array is a vector and not a scalar then axis=1 isn't what you need?
center2center = np.sqrt(np.sum((centers - square_centers) ** 2))
-> a = (centers - square_centers) ** 2 # (n, 2)
-> b = np.sum(a) # scalar, np.sum reduce 0d
-> center2center = np.sqrt(b) # scalar
If np.sum with axis=1
-> a = (centers - square_centers) ** 2 # (n, 2)
-> b = np.sum(a, axis = 1) # (n,)
-> center2center = np.sqrt(b) # (n,)
from mlsd.
Thanks for your comment.
Yes, you are right.
The line 466
Line 465 in 53a0161
I will fix it. Thank you again.
from mlsd.
Related Issues (20)
- Flask HOT 2
- Convert to tensorflowjs HOT 13
- 我记得之前readme文件中有个电路图,可否再发一下
- How to convert tflite model into onnx format? HOT 1
- Android app demo HOT 1
- Parameter documentation HOT 2
- Meta files of saved models HOT 1
- int8 quantization HOT 2
- Project dependencies may have API risk issues
- input shape HOT 2
- low fps HOT 1
- Negative number of test results HOT 3
- [Q] Was the reported FPS achieved using GPU? HOT 5
- It runs very slow on the CPU
- What tools should I use to label my own training set
- GPU:
- post-processing of box detector HOT 7
- how can deploy like official HOT 1
- Center score in post-processing
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 mlsd.