step 1
here i ran pt to onnx in local pc 
/model_convertsion_scripts/model_conversion/pt_to_onnx.py

in tool chain if lib conflict install this 
pip install "numpy==1.26.4" "typing-extensions>=4.10.0"
pip install "opencv-python-headless==4.8.1.78"


step 2 on kneron/toolchain:latest  
onnx_utils/optimize_onnx.py

step 3: i have removed last sigmoid  on kneron/toolchain:latest  
onnx_utils/remove_sigmoid.py

step 4 we can test this remove sigmoid.onnx model with manually postprocess on kneron/toolchain:latest  

python test.py \
  --onnx-path /workspace/milan/models/optimized_best_no_sigmoid.onnx \
  --img-dir /workspace/milan/20_crop/train/images \
  --lbl-dir /workspace/milan/20_crop/train/labels \
  --iou-sweep \
  --apply-sigmoid 
  

step 5 : convert to bie and bie to nef using onnx_to_bie2.py  on kneron/toolchain:latest  
/model_convertsion_scripts/model_conversion/onnx_to_bie2.py

