Skip to content

Instantly share code, notes, and snippets.

@xellDart
Created August 16, 2020 21:10
Show Gist options
  • Save xellDart/c910f6091ea1a5a8c5725ddffa41b514 to your computer and use it in GitHub Desktop.
Save xellDart/c910f6091ea1a5a8c5725ddffa41b514 to your computer and use it in GitHub Desktop.
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);
}
@huuhieupham189
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment