Skip to content

How to test if the AI failure detection works properly on my 3D printer?

First Test of the AI on your 3D Printer

Test the AI system after installing it so you can set the settings properly to work with your camera, lighting, and printer. Each configuration will be diffirent, so the default settings may not work well for you.

Follow the steps below according to which system you are using.

OctoPrint AI Testing Steps

Note Don't forget to disable Virtual Printer after testing the AI system, otherwise your printer won't physically print any jobs that you tell it to after this setup step.

  1. Navigate to Settings -> Plugins -> Virtual Printer and enable the Virtual Printer. Save the settings and exit the settings page.
  2. Upload any G-Code file to your OctoPrint instance and start a Virtual Print with that file.
  3. Navigate to the PrintWatch tab in OctoPrint and wait for the current webcam frame to load in the preview
  4. The AI preview and plot will update every 10 seconds. Add some spaghetti to the print bed so it is visible in the webcam frame and wait for the AI preview to update.
  5. The preview will place red boxes over areas where spaghetti is detected and the plot will begin to increase in value slowly.

Klipper AI Testing Steps

  1. Start any print job.
  2. The AI Defect Score meter on the Dashboard page will update every 10 seconds. Add some spaghetti to the print bed so it is visible in the webcam frame and wait for the AI preview to update.
  3. The meter will slowly increase in value when spaghetti is detected. If spaghetti is being detected at a confidence of 0.9, it may take several cycles before the defect score actually reaches the value of 0.9.

RepRapFirmware or Duet3D AI Testing Steps

  1. Enable Test Mode with the Enable Test Mode button.
  2. The AI preview and plot will update every 10 seconds. Add some spaghetti to the print bed so it is visible in the webcam frame and wait for the AI preview to update.
  3. The preview will place red boxes over areas where spaghetti is detected and the plot will begin to increase in value slowly.