Skip to content

Commit be1edfd

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Add raft_large weights fined-tuned on Kitti (#5081)
Reviewed By: fmassa Differential Revision: D33185012 fbshipit-source-id: 0cde871c6054416b86634865ec758034ec51519e
1 parent db9bd9a commit be1edfd

File tree

1 file changed

+24
-12
lines changed
  • torchvision/prototype/models/optical_flow

1 file changed

+24
-12
lines changed

torchvision/prototype/models/optical_flow/raft.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,30 @@ class Raft_Large_Weights(WeightsEnum):
7979
},
8080
)
8181

82-
# C_T_SKHT_K_V1 = Weights(
83-
# # Chairs + Things + Sintel fine-tuning + Kitti fine-tuning i.e.:
84-
# # Chairs + Things + (Sintel + Kitti + HD1K + Things_clean) + Kitti
85-
# # Same as CT_SKHT with extra fine-tuning on Kitti
86-
# # Corresponds to the C+T+S+K+H on paper with fine-tuning on Sintel and then on Kitti
87-
# url="",
88-
# transforms=RaftEval,
89-
# meta={
90-
# "recipe": "",
91-
# "epe": -1234,
92-
# },
93-
# )
82+
C_T_SKHT_K_V1 = Weights(
83+
# Chairs + Things + Sintel fine-tuning + Kitti fine-tuning, ported from the original repo (sintel-kitti.pth)
84+
url="https://download.pytorch.org/models/raft_large_C_T_SKHT_K_V1-4a6a5039.pth",
85+
transforms=RaftEval,
86+
meta={
87+
**_COMMON_META,
88+
"recipe": "https://github.com/princeton-vl/RAFT",
89+
"kitti_test_f1-all": 5.10,
90+
},
91+
)
92+
93+
C_T_SKHT_K_V2 = Weights(
94+
# Chairs + Things + Sintel fine-tuning + Kitti fine-tuning i.e.:
95+
# Chairs + Things + (Sintel + Kitti + HD1K + Things_clean) + Kitti
96+
# Same as CT_SKHT with extra fine-tuning on Kitti
97+
# Corresponds to the C+T+S+K+H on paper with fine-tuning on Sintel and then on Kitti
98+
url="https://download.pytorch.org/models/raft_large_C_T_SKHT_K_V2-b5c70766.pth",
99+
transforms=RaftEval,
100+
meta={
101+
**_COMMON_META,
102+
"recipe": "https://github.com/pytorch/vision/tree/main/references/optical_flow",
103+
"kitti_test_f1-all": 5.19,
104+
},
105+
)
94106

95107
default = C_T_V2
96108

0 commit comments

Comments
 (0)