2026-01-28 06:16:04 +00:00

24 lines
942 B
Python

"""
Test flows to be filled out by the user.
"""
import python_flow.flow as flow
def your_test_name(file_names, user_config):
"""Your test flow should go here. The name of this function will be used as a command line argument.
Arguments:
file_names: List of string paths to the test images
user_config: Dictionary holding the config loaded by the user
"""
## call flow.run_simulator(user_config["model_name"], file_names[0], pre_input)
## if your test uses multiple input images, simply use file_names as the parameter
## pre_input may be None if you dont need anything passed into your preprocess function
# to use config for example.json, access it by: user_config["example"]
user_config = {
## model_name: input_json path, relative to your app folder
## model_name key will be used to access the appropriate config in your test function
"example": "input_jsons/example.json"
}