Download trainer/trainer.py from adelelsayed1991/mae: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/adelelsayed1991/mae/resolve/main/trainer/trainer.py
- Command line
-
hf download hf://adelelsayed1991/mae/trainer/trainer.py
-
curl -L -o trainer.py https://huggingface.co/adelelsayed1991/mae/resolve/main/trainer/trainer.py
315 Bytes
| from trainer.utils import * | |
| from configs.configs import root,mae_config | |
| def main(): | |
| try: | |
| print(f"Training mae") | |
| trainer=MAETrainer(mae_config) | |
| trainer.test() | |
| except: | |
| import traceback | |
| traceback.print_exc() | |
| if __name__=="__main__":main() |