Skip to content

Commit 5114c21

Browse files
committed
Change the Python interpreter to Python 3.x in the scripts
1 parent aaa715b commit 5114c21

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

avg_checkpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
""" Checkpoint Averaging Script
33
44
This script averages all model weights for checkpoints in specified path that match

clean_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
""" Checkpoint Cleaning Script
33
44
Takes training checkpoints with GPU tensors, optimizer state, extra dict keys, etc.

distributed_train.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
NUM_PROC=$1
33
shift
4-
python -m torch.distributed.launch --nproc_per_node=$NUM_PROC train.py "$@"
4+
python3 -m torch.distributed.launch --nproc_per_node=$NUM_PROC train.py "$@"
55

inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""PyTorch Inference Script
33
44
An example inference script that outputs top-k class ids for images in a folder into a csv.

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
""" ImageNet Training Script
33
44
This is intended to be a lean and easily modifiable ImageNet training script that reproduces ImageNet

validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
""" ImageNet Validation Script
33
44
This is intended to be a lean and easily modifiable ImageNet validation script for evaluating pretrained

0 commit comments

Comments
 (0)