scripts.publish_models

scripts.publish_models.convert_to_backward_compatible_models(paths)[source]

Convert to backward compatible pth files.

PyTorch 1.6 uses a updated version of torch.save. In order to be compatible with previous PyTorch version, save it with _use_new_zipfile_serialization=False.

scripts.publish_models.update_sha(paths)[source]