Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shebang and API fixes #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion raft3d/blocks/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import torch.nn.functional as F

from torchvision.models.resnet import ResNet, Bottleneck
from torchvision.models.utils import load_state_dict_from_url
from torchvision._internally_replaced_utils import load_state_dict_from_url

MODEL_URL = 'https://download.pytorch.org/models/resnet50-19c8e357.pth'

Expand Down
5 changes: 2 additions & 3 deletions scripts/demo.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
sys.path.append('.')

Expand Down Expand Up @@ -90,12 +91,10 @@ def demo(args):

if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--model', default='models/raft3d.pth', help='checkpoint to restore')
parser.add_argument('--model', default='raft3d.pth', help='checkpoint to restore')
parser.add_argument('--network', default='raft3d.raft3d', help='network architecture')
args = parser.parse_args()

demo(args)




1 change: 1 addition & 0 deletions scripts/evaluation.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
sys.path.append('.')

Expand Down
1 change: 1 addition & 0 deletions scripts/kitti_submission.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
sys.path.append('.')

Expand Down
2 changes: 1 addition & 1 deletion scripts/train_kitti.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
sys.path.append('.')

Expand Down Expand Up @@ -135,4 +136,3 @@ def train(args):

print(args)
train(args)

2 changes: 1 addition & 1 deletion scripts/train_things.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
sys.path.append('.')

Expand Down Expand Up @@ -137,4 +138,3 @@ def train(args):

print(args)
train(args)