Skip to content

Commit 954a117

Browse files
authored
Pre-trained weights for raft-large, fine-tuned on sintel (#5079)
1 parent 22a23e8 commit 954a117

File tree

1 file changed

+25
-11
lines changed
  • torchvision/prototype/models/optical_flow

1 file changed

+25
-11
lines changed

torchvision/prototype/models/optical_flow/raft.py

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,31 @@ class Raft_Large_Weights(WeightsEnum):
5353
},
5454
)
5555

56-
# C_T_SKHT_V1 = Weights(
57-
# # Chairs + Things + Sintel fine-tuning, i.e.:
58-
# # Chairs + Things + (Sintel + Kitti + HD1K + Things_clean)
59-
# # Corresponds to the C+T+S+K+H on paper with fine-tuning on Sintel
60-
# url="",
61-
# transforms=RaftEval,
62-
# meta={
63-
# "recipe": "",
64-
# "epe": -1234,
65-
# },
66-
# )
56+
C_T_SKHT_V1 = Weights(
57+
# Chairs + Things + Sintel fine-tuning, ported from original paper repo (raft-sintel.pth)
58+
url="https://download.pytorch.org/models/raft_large_C_T_SKHT_V1-0b8c9e55.pth",
59+
transforms=RaftEval,
60+
meta={
61+
**_COMMON_META,
62+
"recipe": "https://github.com/princeton-vl/RAFT",
63+
"sintel_test_cleanpass_epe": 1.94,
64+
"sintel_test_finalpass_epe": 3.18,
65+
},
66+
)
67+
68+
C_T_SKHT_V2 = Weights(
69+
# Chairs + Things + Sintel fine-tuning, i.e.:
70+
# Chairs + Things + (Sintel + Kitti + HD1K + Things_clean)
71+
# Corresponds to the C+T+S+K+H on paper with fine-tuning on Sintel
72+
url="https://download.pytorch.org/models/raft_large_C_T_SKHT_V2-ff5fadd5.pth",
73+
transforms=RaftEval,
74+
meta={
75+
**_COMMON_META,
76+
"recipe": "https://github.com/pytorch/vision/tree/main/references/optical_flow",
77+
"sintel_test_cleanpass_epe": 1.819,
78+
"sintel_test_finalpass_epe": 3.067,
79+
},
80+
)
6781

6882
# C_T_SKHT_K_V1 = Weights(
6983
# # Chairs + Things + Sintel fine-tuning + Kitti fine-tuning i.e.:

0 commit comments

Comments
 (0)