# Using Adaptation Mode with Red Analyze

1. Prepare a previously trained Red Analyze High Detail tool.

2. Prepare at least 32 newly captured images from your production line that contain variations from the training images.

   The newly captured images are allowed to have variations in terms of lighting and camera condition from the training images, but all the other properties of images must be identical to those of the training images for the previously trained tool.

   The newly captured images are allowed to have multiple variation types, but the pattern should be consistent over all samples.

3. Create a new stream.

4. Create a new Red Analyze High Detail tool in this stream.

5. Change the Mode parameter from Basic to Adaptation for this tool. If the tool created at Step 4 is a trained one, changing the Mode parameter will remove all trained information for this tool.

6. Click the Import button to load the previously trained tool.

   If the previously trained tool is successfully imported, its name is displayed in the Trained Tool field.

7. Import the labeled samples of new images into the current stream, or import the unlabeled samples and label them.

   The samples of the new images should fully and identically represent the property of the newly captured images.

   Note: Do not load the images used for constructing the previously trained tool and the samples of the newly captured images into the same stream or workspace, because it ruins the expected result of adaptation.

   When you import the samples of new images, the number of good-labeled and bad-labeled (pixel-wise labeled) views should be equal to or greater than one each.

8. Click the Adaptation icon to start the adaptation of the previously trained tool. The tool is automatically processed when the adaptation is completed.

9. Review the results.

   If you want to change the results with Processing parameters after the adaptation is completed, configure them and click Processing.

   Result Example before Adaptation | Result Example after Adaptation

10. Deploy the adapted tool in the runtime environment and process the whole set of new images with variation.