davisking / davisking/dlib-models
Android app crash
- Dominant language
- C++
- Stars
- 1.6k
- Forks
- 399
- PR merge metrics
- No merged PRs in 30d
Description
Hi, i would like to run your age predictor on android. I am able to compile and run app but when i put this line
deserialize("/sdcard/dnn_age_predictor_v1.dat") >> age_net;
app is crushing. File is available and deserializing is ok bcs. when i comment ">> age_net" its not crushing.
I also use all your implementation to apredictor_t type. Its look like
const unsigned long number_of_age_classes = 81;
// The resnet basic block.
template<
int num_filters,
template class BN, // some kind of batch normalization or affine layer
int stride,
typename SUBNET
>
using basicblock = BN>>>>;
// A residual making use of the skip layer mechanism.
template<
template class, int, typename> class BLOCK, // a basic block defined before
int num_filters,
template class BN, // some kind of batch normalization or affine layer
typename SUBNET
> // adds the block to the result of tag1 (the subnet)
using residual = add_prev1>>;
// A residual that does subsampling (we need to subsample the output of the subnet, too).
template<
template class, int, typename> class BLOCK, // a basic block defined before
int num_filters,
template class BN,
typename SUBNET
>
using residual_down = add_prev2>>>>>;
// Residual block with optional downsampling and batch normalization.
template<
template class, int, typename> class, int, templateclass, typename> class RESIDUAL,
template class, int, typename> class BLOCK,
int num_filters,
template class BN,
typename SUBNET
>
using residual_block = relu>;
template
using aresbasicblock_down = residual_block;
// Some useful definitions to design the affine versions for inference.
template using aresbasicblock256 = residual_block;
template using aresbasicblock128 = residual_block;
template using aresbasicblock64 = residual_block;
// Common input for standard resnets.
template
using aresnet_input = max_pool<3, 3, 2, 2, relu>>>;
// Resnet-10 architecture for estimating.
template
using aresnet10_level1 = aresbasicblock256>;
template
using aresnet10_level2 = aresbasicblock128>;
template
using aresnet10_level3 = aresbasicblock64;
// The resnet 10 backbone.
template
using aresnet10_backbone = avg_pool_everything<
aresnet10_level1<
aresnet10_level2<
aresnet10_level3<
aresnet_input>>>>;
using apredictor_t = loss_multiclass_log>>;
apredictor_t age_net;
Don't have any idea. Has you?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.