Skip to content

Instantly share code, notes, and snippets.

@mjamroz
Created September 2, 2023 09:06
Show Gist options
  • Save mjamroz/5553dc8f9dfb1568c08dfc7ac0489a3b to your computer and use it in GitHub Desktop.
Save mjamroz/5553dc8f9dfb1568c08dfc7ac0489a3b to your computer and use it in GitHub Desktop.
taskname: '+ MobileViTv2-2.0 plant'
common:
enable_coreml_compatible_module: true
results_loc: "conv"
run_label: "finetune_mobilevit_plants"
mixed_precision: true
conversion:
input_image_path: "/home/nme/WORK/plants_and_shrooms/plants_images/6541/a177a8d425913fac10075c76bc8332a0ad83d04eDsc_0063.jpg"
dataset:
category: "classification"
model:
classification:
freeze_batch_norm: true
finetune_pretrained_model: false
pretrained: "results/finetune_mobilevit_plants/checkpoint_best.pt"
n_classes: 3343
name: "mobilevit_v2"
mitv2:
width_multiplier: 2.0
attn_norm_layer: "layer_norm_2d"
activation:
name: "swish"
normalization:
name: "batch_norm"
momentum: 0.1
activation:
name: "swish"
layer:
global_pool: "mean"
conv_init: "kaiming_normal"
linear_init: "trunc_normal"
linear_init_std_dev: 0.02
@mjamroz
Copy link
Author

mjamroz commented Sep 2, 2023

Convert cvnets to coreml

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