CVHub520 / X-AnyLabeling

Effortless data labeling with AI support from Segment Anything and other awesome models.
GNU General Public License v3.0
3.6k stars 408 forks source link

ValueError: Required inputs (['input_image']) are missing from input feed (['image_embeddings', 'point_coords', 'point_labels', 'mask_input', 'has_mask_input', 'orig_im_size']).无法自动标注,报错 #530

Closed cakuYu closed 4 weeks ago

CVHub520 commented 1 month ago

Hi, it appears that the error you're encountering, ValueError: Required inputs (['input_image']) are missing from input feed..., is due to a mismatch between the exported ONNX model and the model expected by the X-AnyLabeling tool. The inputs expected by the tool are not present in the model you've provided.

To resolve this issue, you can try one of the following two solutions:

  1. Follow the instructions in the tutorial to export your model correctly. After exporting, use the netron tool to inspect the input and output nodes of your ONNX model to ensure they match the expected inputs of X-AnyLabeling.
  2. If the first solution doesn't work for you, you can modify the model inference script to accommodate your custom model. This will involve updating the script to handle the specific input and output nodes of your ONNX model.

Please try these solutions and let us know if you encounter any further issues. If you need more detailed assistance, feel free to ask!