ModelNet
ModelNet Dataset
Flux3D.Dataset.ModelNet
— TypeModelNet
Base ModelNet for MN10/40.
Fields:
root::String
- Root directory of datasetpath::String
- Directory of datasettrain::Bool
- Specifies the trainsetlength::Int
- Length of datasetdatapaths::Array
- Array containing the shape and path for each datapointtransform
- Transform to be applied to data pointcategories::Vector{String}
- Categories to be used in datasetclasses_to_idx::Dict{String, UInt8}
- Dict mapping from shape name to class_idxidx_to_classes::Dict{UInt8, String}
- Dict mapping from class_idx to shape name
ModelNet Constructor
ModelNet10 Dataset
Flux3D.Dataset.ModelNet10
— MethodModelNet10(;kwargs...)
Returns ModelNet10 dataset.
Optional Key Arguments:
* `root::String=default_root` - Root directory of dataset
* `train::Bool=true` - Specifies the trainset
* `transform=nothing` - Transform to be applied to data point.
* `categories::Vector{String}` - Specifies the categories to be used in dataset.
Examples:
julia> dset = ModelNet10(train=false)
julia> typeof(dset[1].data) == TriMesh
ModelNet40 Dataset
Flux3D.Dataset.ModelNet40
— MethodModelNet40(;kwargs...)
Returns ModelNet40 dataset.
Optional Key Arguments:
* `root::String=default_root` - Root directory of dataset
* `train::Bool=true` - Specifies the trainset
* `transform=nothing` - Transform to be applied to data point.
* `categories::Vector{String}` - Specifies the categories to be used in dataset.
Examples:
julia> dset = ModelNet40(train=false)
julia> typeof(dset[1].data) == TriMesh