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.
- Generate the images locally, store the tensors in a file.
- During CI, load tensor data from disk
- Generate test image and convert it to tensors
- Compare distance between test image and control image. If distance over X, assert fails
jug-dev commented
Resolved by https://github.com/Haidra-Org/hordelib/pull/317