............                                                             [100%]
=============================== warnings summary ===============================
tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolov8-cpu]
tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolo26-cuda:0]
  /root/private/project/pallet_detection_v2/pallet/models/detector.py:28: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
    if image.ndim != 4 or image.shape[1] != 4 or not image.is_floating_point():

tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolov8-cpu]
tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolo26-cuda:0]
  /root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/ultralytics/nn/modules/head.py:211: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
    if self.dynamic or self.shape != shape:

tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolo26-cuda:0]
  /root/private/project/pallet_detection_v2/pallet/models/detector.py:18: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
    if depth.shape != valid.shape or depth.ndim != 4 or depth.shape[1] != 1:

tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolo26-cuda:0]
  /root/public/unsloth/lib/python3.11/site-packages/torch/onnx/_internal/jit_utils.py:308: UserWarning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied. (Triggered internally at /pytorch/torch/csrc/jit/passes/onnx/constant_fold.cpp:178.)
    _C._jit_pass_onnx_node_shape_type_inference(node, params_dict, opset_version)

tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolo26-cuda:0]
  /root/public/unsloth/lib/python3.11/site-packages/torch/onnx/utils.py:657: UserWarning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied. (Triggered internally at /pytorch/torch/csrc/jit/passes/onnx/constant_fold.cpp:178.)
    _C._jit_pass_onnx_graph_shape_type_inference(

tests/test_yolo_research_integration.py::test_real_640_training_ema_loading_and_export[yolo26-cuda:0]
  /root/public/unsloth/lib/python3.11/site-packages/torch/onnx/utils.py:1127: UserWarning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied. (Triggered internally at /pytorch/torch/csrc/jit/passes/onnx/constant_fold.cpp:178.)
    _C._jit_pass_onnx_graph_shape_type_inference(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
12 passed, 8 warnings in 48.93s
