From 5fea06426b74fe714a0ca7c31e8b76890dda4c71 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 9 Dec 2021 11:45:03 +0000 Subject: [PATCH 1/2] Fix download link for raft_small --- torchvision/prototype/models/optical_flow/raft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchvision/prototype/models/optical_flow/raft.py b/torchvision/prototype/models/optical_flow/raft.py index ca4ae90927e..1b8343badeb 100644 --- a/torchvision/prototype/models/optical_flow/raft.py +++ b/torchvision/prototype/models/optical_flow/raft.py @@ -97,11 +97,11 @@ class Raft_Small_Weights(WeightsEnum): ) C_T_V2 = Weights( # Chairs + Things - url="https://github.com/pytorch/vision/tree/main/references/optical_flow", + url="https://download.pytorch.org/models/raft_small_C_T_V2-01064c6d.pth", transforms=RaftEval, meta={ **_COMMON_META, - "recipe": "https://github.com/princeton-vl/RAFT", + "recipe": "https://github.com/pytorch/vision/tree/main/references/optical_flow", "sintel_train_cleanpass_epe": 1.9901, "sintel_train_finalpass_epe": 3.2831, "kitti_train_per_image_epe": 7.5978, From bfba31fadf7df7e6d9eef9eb46038c1e53b49495 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 9 Dec 2021 11:48:21 +0000 Subject: [PATCH 2/2] add new line in readme --- references/optical_flow/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/references/optical_flow/README.md b/references/optical_flow/README.md index f722b70ae41..9b08553708a 100644 --- a/references/optical_flow/README.md +++ b/references/optical_flow/README.md @@ -62,4 +62,4 @@ You can also evaluate on Kitti train: ``` torchrun --nproc_per_node 1 --nnodes 1 train.py --val-dataset kitti --batch-size 1 --dataset-root $dataset_root --model raft_large --pretrained Kitti val epe: 4.7968 1px: 0.6388 3px: 0.8197 5px: 0.8661 per_image_epe: 4.5118 f1: 16.0679 -``` \ No newline at end of file +```