Closed marouaneamz closed 2 years ago
I used the following script to archive the model in .mar to use torchseve:
python tools/deployment/mmcls2torchserve.py \ ../mdl-py-classification/model/mobile/mobilenet_v2_8xb32_in1k.py \ ../mdl-py-classification/storage/mobilenet.pth\ --output-folder ./ \ --model-name mobilenet
in mobilenet_v2_8xb32_in1k.py i have :
_base_ = [ '../_base_/models/mobilenet_v2_1x.py', '../../datasets/_base_/20220813-19classes.py', '../_base_/schedules/imagenet_bs256_epochstep.py', '../_base_/default_runtime.py' ]
normally i added classes to dataset configuration but no results the torchserve does not take into account my class names.
curl http://127.0.0.1:8080/predictions/mobilenet -T ./mdl-py-classification/tmp/cache/20220906-19classes/201810schedulehd-1539076206087-59902-0040_xxx_segments_xxx_finishToReannotate-35-39-frame-2-00000002.png { "pred_label": 3, "pred_score": 0.9900903701782227, "pred_class": "tiger shark, Galeocerdo cuvieri" }%
torchseve take into account my class names
Hi, it seems your issue is irrelevant to MMOCR. Please refer to MMClassification.
Scenario
I used the following script to archive the model in .mar to use torchseve:
in mobilenet_v2_8xb32_in1k.py i have :
Actual
normally i added classes to dataset configuration but no results the torchserve does not take into account my class names.
Expected :
torchseve take into account my class names