- Add your custom model as a single python file, containing a single class whose name is the same as the filename.
- Custom model needs to have forward and sample functions defined. Sample takes requires three arguments: num_samples, resolution, device. Forward takes a single argument.
- Include an additional field under the details section in the model configuration file "config.yaml". The name of the additional field has to be the same as the custom model's class name. Under this field, include all arguments for the model's constructor.
- If model is GAN based, modify the "is_gan" field accordingly.
- Choose model to be trained using the "name" field under the model section.
- Use save_name under the train section to decide the name of the saved model files.
- Use the shape_setting field to load dataset of varying resolution. Content must be a list of lists, where each inner list has its first element being the resolution and second element being the proportion of samples at that resolution. The proportion are used to parameterize a categorical distribution to draw sampels at different resolutions.
- Use the MMD_test section to configure MMD test setting and use MMD_test.py to run MMD test for testing quality of model's generate images at different resolutions.