Add Pre-processing method
To add a pre-processing method follow these steps:
Fork the dataset, pull the latest changes and create a new branch add-preprocess-{method_name}
In the
framework/dataloader/preprocess/methods.pyimplement a function that performs the pre-processing method.In the same file, add the pre-processing method to the dictionary method2fun,
method_name: method_function.The key must be the pre-process method name. This name will be used by the framework to call the function.
The value is the function itself.
Example:
method2fun = { # ..... # method_name: method_function 'binarize': binarize, }
Make a Pull Request on Github.