Haidra-Org/hordelib_old

Perform asserts on test-generated images for validation

db0 opened this issue · 1 comments

db0 commented

There is a way to convert an image into tensors and then compare the tensors of two images to find their "distance".

We could use this method to perform asserts on the image generated by our tests, by using deterministic generation parameters.

  1. Generate the images locally, store the tensors in a file.
  2. During CI, load tensor data from disk
  3. Generate test image and convert it to tensors
  4. Compare distance between test image and control image. If distance over X, assert fails