本文簡要介紹python語言中 torchvision.datasets.Kitti
的用法。
用法:
class torchvision.datasets.Kitti(root: str, train: bool = True, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None, download: bool = False)
root(string) -
圖像下載到的根目錄。如果下載 = False,則需要以下文件夾結構:
<root> └── Kitti └─ raw ├── training | ├── image_2 | └── label_2 └── testing └── image_2
train(bool,可選的) -如果為真,則使用
train
拆分,否則使用test
拆分。默認為train
。transform(可調用的,可選的) -接受 PIL 圖像並返回轉換版本的函數/轉換。例如,
transforms.ToTensor
target_transform(可調用的,可選的) -接收目標並對其進行轉換的函數/轉換。
transforms(可調用的,可選的) -將輸入樣本及其目標作為條目並返回轉換版本的函數/轉換。
download(bool,可選的) -如果為 true,則從 Internet 下載數據集並將其放在根目錄中。如果數據集已經下載,則不會再次下載。
KITTI 數據集。
它對應於“對象的左彩色圖像”數據集,用於對象檢測。
參數:
相關用法
- Python PyTorch Kinetics400用法及代碼示例
- Python PyTorch KeyedTensor用法及代碼示例
- Python PyTorch KeyedJaggedTensor用法及代碼示例
- Python PyTorch Kumaraswamy用法及代碼示例
- Python PyTorch KJTAllToAll用法及代碼示例
- Python PyTorch frexp用法及代碼示例
- Python PyTorch jvp用法及代碼示例
- Python PyTorch cholesky用法及代碼示例
- Python PyTorch vdot用法及代碼示例
- Python PyTorch ELU用法及代碼示例
- Python PyTorch ScaledDotProduct.__init__用法及代碼示例
- Python PyTorch gumbel_softmax用法及代碼示例
- Python PyTorch get_tokenizer用法及代碼示例
- Python PyTorch saved_tensors_hooks用法及代碼示例
- Python PyTorch positive用法及代碼示例
- Python PyTorch renorm用法及代碼示例
- Python PyTorch AvgPool2d用法及代碼示例
- Python PyTorch MaxUnpool3d用法及代碼示例
- Python PyTorch Bernoulli用法及代碼示例
- Python PyTorch Tensor.unflatten用法及代碼示例
- Python PyTorch Sigmoid用法及代碼示例
- Python PyTorch Tensor.register_hook用法及代碼示例
- Python PyTorch ShardedEmbeddingBagCollection.named_parameters用法及代碼示例
- Python PyTorch sqrt用法及代碼示例
- Python PyTorch PackageImporter.id用法及代碼示例
注:本文由純淨天空篩選整理自pytorch.org大神的英文原創作品 torchvision.datasets.Kitti。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。