Created
August 16, 2020 21:10
-
-
Save xellDart/c910f6091ea1a5a8c5725ddffa41b514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnchorOption { | |
final int inputSizeWidth; | |
final int inputSizeHeight; | |
final double minScale; | |
final double maxScale; | |
final double anchorOffsetX; | |
final double anchorOffsetY; | |
final int numLayers; | |
final List<int> featureMapWidth; | |
final List<int> featureMapHeight; | |
final List<int> strides; | |
final List<double> aspectRatios; | |
final bool reduceBoxesInLowestLayer; | |
final double interpolatedScaleAspectRatio; | |
final bool fixedAnchorSize; | |
AnchorOption({ | |
this.inputSizeWidth, | |
this.inputSizeHeight, | |
this.minScale, | |
this.maxScale, | |
this.anchorOffsetX, | |
this.anchorOffsetY, | |
this.numLayers, | |
this.featureMapWidth, | |
this.featureMapHeight, | |
this.strides, | |
this.aspectRatios, | |
this.reduceBoxesInLowestLayer, | |
this.interpolatedScaleAspectRatio, | |
this.fixedAnchorSize, | |
}); | |
int get stridesSize { | |
return strides.length; | |
} | |
int get featureMapHeightSize { | |
return featureMapHeight.length; | |
} | |
int get featureMapWidthSize { | |
return featureMapWidth.length; | |
} | |
} | |
class Anchor { | |
final double xCenter; | |
final double yCenter; | |
final double h; | |
final double w; | |
Anchor(this.xCenter, this.yCenter, this.h, this.w); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, can u publish the full source code in this project : https://medium.com/@mundorap2010/face-detection-with-tflite-model-without-firebase-in-flutter-6eadf888f3b0
It interesting and helpfull with me <3