将模型和参数导入之后生成APP闪退
发布于2021-04 浏览:1256 回复:2
1
收藏

将模型和参数导入之后生成APP后点击开始使用后闪退,不知道是什么原因

 

EasyEdge设置参数

{
"img_mean": [0.5095, 0.5463, 0.5741],
"resize": [224,224],
"scale": [0.003922, 0.003922, 0.003922],
"channelOrder": "HWC",
"colorFormat": "RGB",
"inputNodeName": "data",
"outputNodeName": "input"
}

PaddleClas训练参数

mode: 'train'
ARCHITECTURE:
    name: "GoogLeNet"

pretrained_model: ""
model_save_dir: "./output/"
classes_num: 13
total_images: 12788
save_interval: 1
validate: True
valid_interval: 1
epochs: 100
topk: 5
image_shape: [3, 224, 224]

LEARNING_RATE:
   function: 'CosineWarmup'
   params:
       lr: 0.01

OPTIMIZER:
    function: 'Momentum'
    params:
        momentum: 0.9
    regularizer:
        function: 'L2'
        factor: 0.0001

TRAIN:
    batch_size: 512
    num_workers: 0
    file_list: "./dataset/dataset1/train_list.txt"
    data_dir: "./dataset/dataset1/"
    shuffle_seed: 0
    transforms:
        - DecodeImage:
            to_rgb: True
            to_np: False
            channel_first: False
        - RandCropImage:
            size: 224
        - RandFlipImage:
            flip_code: 1
        - NormalizeImage:
            scale: 1./255.
            mean: [0.5095, 0.5463, 0.5741]
            std:  [0.2606, 0.2604, 0.2922]
            order: ''
        - ToCHWImage:

VALID:
    batch_size: 512
    num_workers: 0
    file_list: "./dataset/dataset1/val_list.txt"
    data_dir: "./dataset/dataset1/"
    shuffle_seed: 0
    transforms:
        - DecodeImage:
            to_rgb: True
            to_np: False
            channel_first: False
        - ResizeImage:
            resize_short: 256
        - CropImage:
            size: 224
        - NormalizeImage:
            scale: 1.0/255.0            
            mean: [0.5095, 0.5463, 0.5741]
            std:  [0.2606, 0.2604, 0.2922]
            order: ''
        - ToCHWImage:

 

收藏
点赞
1
个赞
共2条回复 最后由doubi渣渣回复于2021-04
#3doubi渣渣回复于2021-04

框架现在貌似2.0还不支持

0
#2回复于2021-04

自己给自己顶

0
快速回复
小编推荐
EasyEdge上手指南
TOP
切换版块