Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Download YCB_Video_Dataset.reindexed.v2.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 29, 2020
1 parent ca0f17c commit c51262c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions morefusion/datasets/rgbd_pose_estimation/ycb_video/reindexed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import json
import os.path as osp

import gdown

from ...ycb_video import YCBVideoDataset
from ...ycb_video import YCBVideoSyntheticDataset
from ..reindexed import RGBDPoseEstimationDatasetReIndexedBase
Expand All @@ -13,6 +15,18 @@ class YCBVideoRGBDPoseEstimationDatasetReIndexed(

_root_dir = YCBVideoDataset._root_dir + ".reindexed.v2"

def __init__(self, *args, **kwargs):
if not self.root_dir.exists():
self.download()
super().__init__(*args, **kwargs)

def download(self):
gdown.cached_download(
url="https://drive.google.com/uc?id=1l0ki7dX1WxcmV5Tfm41FPW-yk-wKUfne", # NOQA
path=self.root_dir + ".zip",
postprocess=gdown.extractall,
)

def _get_ids(self):
assert self.split in ["train", "trainreal", "syn", "val"]

Expand Down

0 comments on commit c51262c

Please sign in to comment.