jasakerec
I used Luxonis-train to train pre-defined EffecientVIT on my custom dataset. Instead of converting my dataset I created a custom data loader and loss function. I was able to train it but when I convert it to RVC2 archive it gives an error for Hard sigmoid activation. I have pasted the error in the end. Please let me know how to fix this.
Traceback (most recent call last):
File "/tmp/ipykernel_2994566/4233414881.py", line 34, in <module>
converted_model = convert.RVC2(
File "/home/ssharm21/.local/share/mamba/envs/conversion_env/lib/python3.10/site-packages/modelconverter/hub/convert.py", line 54, in RVC2
return cli_convert(
File "/home/ssharm21/.local/share/mamba/envs/conversion_env/lib/python3.10/site-packages/modelconverter/hub/__main__.py", line 980, in convert
wait_for_export(instance["dag_run_id"])
File "/home/ssharm21/.local/share/mamba/envs/conversion_env/lib/python3.10/site-packages/modelconverter/cli/utils.py", line 405, in wait_for_export
raise RuntimeError(f"Export failed with\n{logs}.")
RuntimeError: Export failed with
[2025-07-17 23:10:14.024407+00:00] {pod.py:1132} INFO - Building pod model-export-1cfns9qi with labels: {'dag_id': 'export_easyml', 'task_id': 'export_model', 'run_id': 'manual__2025-07-17T230950.0128960000-74dfd2937', 'kubernetes_pod_operator': 'True', 'try_number': '1'}
WARNING /usr/local/lib/python3.10/site-packages/albumentations/__ logging.py:86
Albumentations is available: 2.0.8 (you have 1.4.22).
Upgrade using: pip install -U albumentations. To disable
automatic update checks, set the environment variable
NO_ALBUMENTATIONS_UPDATE to 1.
check_for_updates()
`register_module` is deprecated, use `register` instead.
PUT_FILE_REGISTRY.register_module(module=plugin_class)
INFO Simplifying ONNX. base_exporter.py:90
INFO ONNX successfully simplified. base_exporter.py:107
INFO Saving simplified ONNX to base_exporter.py:111
shared_with_container/outputs/ClassificationModel_
to_rvc2_2025_07_17_23_13_42/intermediate_outputs/C
lassificationModel-simplified.onnx
INFO Executing `mo --output_dir subprocess.py:37
shared_with_container/outputs/ClassificationModel_to_r
vc2_2025_07_17_23_13_42/intermediate_outputs --output
/classification/ClassificationHead/classification/0
--compress_to_fp16 --input image[1 3 256 256]{f32}
--mean_values image[123.675, 116.28, 103.53]
--scale_values image[58.395, 57.12, 57.375]
--reverse_input_channels --input_model
shared_with_container/outputs/ClassificationModel_to_r
vc2_2025_07_17_23_13_42/intermediate_outputs/Classific
ationModel-simplified.onnx`
INFO Command `mo` finished in 3.12 seconds with return code subprocess.py:55
0.
INFO [ STDOUT ]: subprocess.py:64
Check for a new version of Intel(R) Distribution of
OpenVINO(TM) toolkit here
https://software.intel.com/content/www/us/en/develop/t
ools/openvino-toolkit/download.html?cid=other&source=p
rod&campid=ww_2023_bu_IOTG_OpenVINO-2022-3&content=upg
_all&medium=organic or on
https://github.com/openvinotoolkit/openvino
[ INFO ] The model was converted to IR v11, the latest
model format that corresponds to the source DL
framework input/output format. While IR v11 is
backwards compatible with OpenVINO Inference Engine
API v1.0, please use API v2.0 (as of 2022.1) to take
advantage of the latest improvements in IR v11.
Find more information about API v2.0 and IR v11 at
https://docs.openvino.ai/latest/openvino_2_0_transitio
n_guide.html
[ SUCCESS ] Generated IR version 11 model.
[ SUCCESS ] XML file:
/app/shared_with_container/outputs/ClassificationModel
_to_rvc2_2025_07_17_23_13_42/intermediate_outputs/Clas
sificationModel-simplified.xml
[ SUCCESS ] BIN file:
/app/shared_with_container/outputs/ClassificationModel
_to_rvc2_2025_07_17_23_13_42/intermediate_outputs/Clas
sificationModel-simplified.bin
INFO OpenVINO IR exported to exporter.py:143
shared_with_container/outputs/ClassificationModel_to_rv
c2_2025_07_17_23_13_42
INFO Executing `compile_tool -d MYRIAD -ip U8 -m subprocess.py:37
shared_with_container/outputs/ClassificationModel_to_r
vc2_2025_07_17_23_13_42/intermediate_outputs/Classific
ationModel-simplified.xml -o
shared_with_container/outputs/ClassificationModel_to_r
vc2_2025_07_17_23_13_42/intermediate_outputs/blobs/Cla
ssificationModel_8shave.blob -c /tmp/tmpg0t6lnon.conf`
ERROR Command `compile_tool` finished in 0.34 seconds with subprocess.py:55
return code 1.
ERROR [ STDERR ]: subprocess.py:59
[ GENERAL_ERROR ]
/mnt/docker/openvino/src/plugins/intel_myriad/graph_tr
ansformer/src/frontend/frontend.cpp:596 Failed to
compile layer
"/EfficientViT/feature_extractor.0/feature_extractor.0
.2/HardSigmoid": unsupported layer type "HardSigmoid"
ERROR [ STDOUT ]: subprocess.py:64
OpenVINO Runtime version ......... 2022.3.0
Build ...........
2022.3.0-9213-bdadcd7583c-releases/2022/3
Network inputs:
image : u8 / [...]
Network outputs:
/classification/ClassificationHead/classification/
0/sink_port_0 : f16 / [...]
ERROR Encountered an exception in the conversion process! __main__.py:348
Traceback (most recent call last):
File "/usr/local/bin/modelconverter", line 8, in
<module>
sys.exit(app())
| | -> <typer.main.Typer object at
0x7e6930d04040>
| -> <built-in function exit>
-> <module 'sys' (built-in)>
File
"/usr/local/lib/python3.10/site-packages/typer/main.py"
, line 323, in __call__
return get_command(self)(*args, **kwargs)
| | | -> {}
| | -> ()
| -> <typer.main.Typer object at
0x7e6930d04040>
-> <function get_command at 0x7e6932111480>
File
"/usr/local/lib/python3.10/site-packages/click/core.py"
, line 1161, in __call__
return self.main(*args, **kwargs)
| | | -> {}
| | -> ()
| -> <function TyperGroup.main at
0x7e6932110f70>
-> <TyperGroup >
File
"/usr/local/lib/python3.10/site-packages/typer/core.py"
, line 743, in main
return _main(
-> <function _main at 0x7e6932110310>
File
"/usr/local/lib/python3.10/site-packages/typer/core.py"
, line 198, in _main
rv = self.invoke(ctx)
| | -> <click.core.Context object at
0x7e697b3cc160>
| -> <function MultiCommand.invoke at
0x7e69321c6290>
-> <TyperGroup >
File
"/usr/local/lib/python3.10/site-packages/click/core.py"
, line 1697, in invoke
return
_process_result(sub_ctx.command.invoke(sub_ctx))
| | | | ->
<click.core.Context object at 0x7e692972dff0>
| | | -> <function
Command.invoke at 0x7e69321c5d80>
| | -> <TyperCommand
convert>
| -> <click.core.Context
object at 0x7e692972dff0>
-> <function
MultiCommand.invoke.<locals>._process_result at
0x7e692971f2e0>
File
"/usr/local/lib/python3.10/site-packages/click/core.py"
, line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
| | | | | -> {'path':
'gs://mlcloud-services-prod-bucket/0197c68d-8b5a-7850-a
d69-e817e290ba41/modelVersions/f828f0b9-00e6-4b1e-94f3-
ad8d82...
| | | | ->
<click.core.Context object at 0x7e692972dff0>
| | | -> <function convert at
0x7e692971db40>
| | -> <TyperCommand convert>
| -> <function Context.invoke at
0x7e69321c4af0>
-> <click.core.Context object at
0x7e692972dff0>
File
"/usr/local/lib/python3.10/site-packages/click/core.py"
, line 788, in invoke
return __callback(*args, **kwargs)
| -> {'path':
'gs://mlcloud-services-prod-bucket/0197c68d-8b5a-7850-a
d69-e817e290ba41/modelVersions/f828f0b9-00e6-4b1e-94f3-
ad8d82...
-> ()
File
"/usr/local/lib/python3.10/site-packages/typer/main.py"
, line 698, in wrapper
return callback(**use_params)
| -> {'target': <Target.RVC2:
'rvc2'>, 'path':
'gs://mlcloud-services-prod-bucket/0197c68d-8b5a-7850-a
d69-e817e290ba41/modelVersio...
-> <function convert at 0x7e692971d510>
> File "/app/modelconverter/__main__.py", line 291, in
convert
out_models = exporter.run()
| -> <function Exporter.run at
0x7e692971c790>
->
<modelconverter.packages.rvc2.exporter.RVC2Exporter
object at 0x7e697a4fcdc0>
File "/app/modelconverter/packages/base_exporter.py",
line 124, in run
output_path = self.export()
| -> <function RVC2Exporter.export
at 0x7e69285c5cf0>
->
<modelconverter.packages.rvc2.exporter.RVC2Exporter
object at 0x7e697a4fcdc0>
File "/app/modelconverter/packages/rvc2/exporter.py",
line 216, in export
return self.compile_superblob(args)
| | -> ['-d', 'MYRIAD',
'-ip', 'U8', '-m',
PosixPath('shared_with_container/outputs/Classification
Model_to_rvc2_2025_07_17_23_13_42/...
| -> <function
RVC2Exporter.compile_superblob at 0x7e69285c5e10>
->
<modelconverter.packages.rvc2.exporter.RVC2Exporter
object at 0x7e697a4fcdc0>
File "/app/modelconverter/packages/rvc2/exporter.py",
line 249, in compile_superblob
default_blob_path = self.compile_blob(
| -> <function
RVC2Exporter.compile_blob at 0x7e69285c5d80>
->
<modelconverter.packages.rvc2.exporter.RVC2Exporter
object at 0x7e697a4fcdc0>
File "/app/modelconverter/packages/rvc2/exporter.py",
line 239, in compile_blob
self._subprocess_run(["compile_tool", *args],
meta_name="compile_tool")
| | -> ['-d',
'MYRIAD', '-ip', 'U8', '-m',
PosixPath('shared_with_container/outputs/Classification
Model_to_rvc2_2025_07_17_23_13_42/...
| -> <function Exporter._subprocess_run at
0x7e692971ca60>
->
<modelconverter.packages.rvc2.exporter.RVC2Exporter
object at 0x7e697a4fcdc0>
File "/app/modelconverter/packages/base_exporter.py",
line 196, in _subprocess_run
subprocess_run(args, **kwargs)
| | -> {}
| -> ['compile_tool', '-d', 'MYRIAD',
'-ip', 'U8', '-m',
PosixPath('shared_with_container/outputs/Classification
Model_to_rvc2_2025...
-> <function subprocess_run at 0x7e6931037910>
File "/app/modelconverter/utils/subprocess.py", line
67, in subprocess_run
raise SubprocessException(info_string)
| -> 'Command
`compile_tool` finished in 0.34 seconds with return
code 1.\n[ STDERR ]:\n[ GENERAL_ERROR ]
\n/mnt/docker/openvino/s...
-> <class
'modelconverter.utils.exceptions.SubprocessException'>
modelconverter.utils.exceptions.SubprocessException:
Command `compile_tool` finished in 0.34 seconds with
return code 1.
[ STDERR ]:
[ GENERAL_ERROR ]
/mnt/docker/openvino/src/plugins/intel_myriad/graph_tra
nsformer/src/frontend/frontend.cpp:596 Failed to
compile layer
"/EfficientViT/feature_extractor.0/feature_extractor.0.
2/HardSigmoid": unsupported layer type "HardSigmoid"
[ STDOUT ]:
OpenVINO Runtime version ......... 2022.3.0
Build ...........
2022.3.0-9213-bdadcd7583c-releases/2022/3
Network inputs:
image : u8 / [...]
Network outputs:
/classification/ClassificationHead/classification/0
/sink_port_0 : f16 / [...]
╭───────── Traceback (most recent call last) ─────────╮
│ /app/modelconverter/__main__.py:291 in convert │
│ │
│ 288 │ │ │ │ │ output_dir=output_path, │
│ 289 │ │ │ │ ) │
│ 290 │ │ │ │
│ ❱ 291 │ │ │ out_models = exporter.run() │
│ 292 │ │ │ if not isinstance(out_models, lis │
│ 293 │ │ │ │ out_models = [out_models] │
│ 294 │ │ │ if to == Format.NN_ARCHIVE: │
│ │
│ /app/modelconverter/packages/base_exporter.py:124 │
│ in run │
│ │
│ 121 │ │ pass │
│ 122 │ │
│ 123 │ def run(self) -> Path: │
│ ❱ 124 │ │ output_path = self.export() │
│ 125 │ │ new_output_path = ( │
│ 126 │ │ │ self.output_dir │
│ 127 │ │ │ / Path(self.model_name).with_suff │
│ │
│ /app/modelconverter/packages/rvc2/exporter.py:216 │
│ in export │
│ │
│ 213 │ │ args += ["-m", xml_path] │
│ 214 │ │ │
│ 215 │ │ if self.superblob: │
│ ❱ 216 │ │ │ return self.compile_superblob(arg │
│ 217 │ │ │
│ 218 │ │ return self.compile_blob(args) │
│ 219 │
│ │
│ /app/modelconverter/packages/rvc2/exporter.py:249 │
│ in compile_superblob │
│ │
│ 246 │ │ │
│ 247 │ │ orig_args = args.copy() │
│ 248 │ │ │
│ ❱ 249 │ │ default_blob_path = self.compile_blob │
│ 250 │ │ │ orig_args │
│ 251 │ │ │ + [ │
│ 252 │ │ │ │ "-o", │
│ │
│ /app/modelconverter/packages/rvc2/exporter.py:239 │
│ in compile_blob │
│ │
│ 236 │ │ │ │ ), │
│ 237 │ │ │ ] │
│ 238 │ │ │
│ ❱ 239 │ │ self._subprocess_run(["compile_tool", │
│ 240 │ │ logger.info(f"Blob compiled to {blob_ │
│ 241 │ │ return blob_output_path │
│ 242 │
│ │
│ /app/modelconverter/packages/base_exporter.py:196 │
│ in _subprocess_run │
│ │
│ 193 │ │ │ args.extend(new_args) │
│ 194 │ │
│ 195 │ def _subprocess_run(self, args: List[str] │
│ ❱ 196 │ │ subprocess_run(args, **kwargs) │
│ 197 │ │ self._cmd_info[meta_name] = [str(arg) │
│ 198 │
│ │
│ /app/modelconverter/utils/subprocess.py:67 in │
│ subprocess_run │
│ │
│ 64 │ │ │ log_message(f"[ STDOUT ]:\n{string │
│ 65 │ │ info_string += f"\n[ STDOUT ]:\n{strin │
│ 66 │ if result.returncode != 0: │
│ ❱ 67 │ │ raise SubprocessException(info_string) │
│ 68 │ │
│ 69 │ return result │
│ 70 │
╰─────────────────────────────────────────────────────╯
SubprocessException: Command `compile_tool` finished in
0.34 seconds with return code 1.
[ STDERR ]:
[ GENERAL_ERROR ]
/mnt/docker/openvino/src/plugins/intel_myriad/graph_tra
nsformer/src/frontend/frontend.cpp:596 Failed to
compile layer
"/EfficientViT/feature_extractor.0/feature_extractor.0.
2/HardSigmoid": unsupported layer type "HardSigmoid"
[ STDOUT ]:
OpenVINO Runtime version ......... 2022.3.0
Build ...........
2022.3.0-9213-bdadcd7583c-releases/2022/3
Network inputs:
image : u8 / [...]
Network outputs:
/classification/ClassificationHead/classification/0
/sink_port_0 : f16 / [...]
[2025-07-17 23:14:15.943332+00:00] {pod.py:984} INFO - Skipping deleting pod: model-export-1cfns9qi
.