Closed thawn closed 1 year ago
running pytest tests/test_Noise2VoidDataGenerator.py
did not return any errors.
running pytest
returned errors complaining about missing json files:
ERROR tests/functional/test_prediction2D_RGB.py - FileNotFoundError: config file doesn't exist: n2v/models/n2v_2D_RGB/config.json
ERROR tests/functional/test_prediction2D_SEM.py - FileNotFoundError: config file doesn't exist: n2v/models/n2v_2D_SEM/config.json
ERROR tests/functional/test_prediction3D.py - FileNotFoundError: config file doesn't exist: n2v/models/n2v_3D/config.json
by supplying imread as a callable parameter to N2V_DataGenerator.load_images, it is easier to support different file formats.
For example, if I wanted to use nikon nd2 files instead of tiff, I would write the following
imread
function:I could then call the data generator like this and it would automagically work for nd2 files instead of tiffs: