Skip to content

IISAS/spice_image_classification_pieces

Repository files navigation

SPICE Pieces repository

Image classification pieces

Pieces for preprocessing images and training/inferencing a simple CNN classifier.

Nozzle Torch inference pieces

The nozzle workflow uses file-based stage connections. Pieces pass paths to JSON files, not in-memory objects:

  • NozzleInnerBoundaryPiece runs inner boundary ray inference and writes boundary points plus the ray center to JSON. Its ray center can come from explicit x/y, an optional circle JSON, or the image center.
  • NozzleCirclePiece loads a boundary-points JSON, fits the generic circle model, and writes center/radius/errors to JSON.
  • NozzleOuterBoundaryPiece runs outer boundary ray inference and writes boundary points to JSON. Its ray center can come from explicit x/y, an optional circle JSON, or the image center.
  • NozzleBoundaryPointsVisualizationPiece loads one boundary-points JSON and renders points/connecting lines onto an image with configurable colors and opacity.
  • NozzleCircleVisualizationPiece loads one circle JSON and renders the circle/center marker onto an image with configurable colors and opacity.
  • NozzleVisualizationPiece loads the image plus inner/outer boundary and circle JSON files, renders Wizard-like final/boundary/circle/area-error images with configurable boundary/circle colors and opacity, and writes metrics including median inner and outer circle radius in pixels.

The current Wizard-style chain can be built from these pieces, for example:

NozzleInnerBoundaryPiece(iteration rays)
-> NozzleCirclePiece(refined center)
-> NozzleInnerBoundaryPiece(final rays, center from previous circle)
-> NozzleCirclePiece(final inner circle)
-> NozzleOuterBoundaryPiece(center from final inner circle)
-> NozzleCirclePiece(final outer circle)
-> NozzleVisualizationPiece(render images + metrics)

Each boundary piece accepts a ray count, but the ray loop runs internally inside that piece.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages