torch_geometric.datasets.PascalPF
- class PascalPF(root: str, category: str, transform: Optional[Callable] = None, pre_transform: Optional[Callable] = None, pre_filter: Optional[Callable] = None, force_reload: bool = False)[source]
Bases:
InMemoryDataset来自“Proposal Flow”论文的Pascal-PF数据集,包含20个类别中每个示例的4到16个关键点。
- Parameters:
root (str) – Root directory where the dataset should be saved.
category (str) – The category of the images (one of
"Aeroplane","Bicycle","Bird","Boat","Bottle","Bus","Car","Cat","Chair","Diningtable","Dog","Horse","Motorbike","Person","Pottedplant","Sheep","Sofa","Train","TVMonitor")transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before every access. (default:None)pre_transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before being saved to disk. (default:None)pre_filter (callable, optional) – A function that takes in an
torch_geometric.data.Dataobject and returns a boolean value, indicating whether the data object should be included in the final dataset. (default:None)force_reload (bool, optional) – Whether to re-process the dataset. (default:
False)