Merge pull request #418 from kecsap/master

Change the Python interpreter to Python 3.x in the scripts
This commit is contained in:
Ross Wightman 2021-02-09 20:55:55 -08:00 committed by GitHub
commit db6128db0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
""" Checkpoint Averaging Script """ Checkpoint Averaging Script
This script averages all model weights for checkpoints in specified path that match This script averages all model weights for checkpoints in specified path that match

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
""" Checkpoint Cleaning Script """ Checkpoint Cleaning Script
Takes training checkpoints with GPU tensors, optimizer state, extra dict keys, etc. Takes training checkpoints with GPU tensors, optimizer state, extra dict keys, etc.

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
NUM_PROC=$1 NUM_PROC=$1
shift shift
python -m torch.distributed.launch --nproc_per_node=$NUM_PROC train.py "$@" python3 -m torch.distributed.launch --nproc_per_node=$NUM_PROC train.py "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""PyTorch Inference Script """PyTorch Inference Script
An example inference script that outputs top-k class ids for images in a folder into a csv. An example inference script that outputs top-k class ids for images in a folder into a csv.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
""" ImageNet Training Script """ ImageNet Training Script
This is intended to be a lean and easily modifiable ImageNet training script that reproduces ImageNet This is intended to be a lean and easily modifiable ImageNet training script that reproduces ImageNet

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
""" ImageNet Validation Script """ ImageNet Validation Script
This is intended to be a lean and easily modifiable ImageNet validation script for evaluating pretrained This is intended to be a lean and easily modifiable ImageNet validation script for evaluating pretrained