Flux3D.jl
Flux3D.jl copied to clipboard
ModelNet10 dataset not loading
Hi I'm new to Julia, so this is possibly just my mistake, but I cant seem to load the datasets from the tutorials:
If I execute (from https://fluxml.ai/Flux3D.jl/dev/datasets/modelnet/)
dset = ModelNet10(train=false)
I get the error:
dataset not found and auto-download option is set false.
And if I run:
dset = ModelNet10.dataset(;
mode = :pointcloud,
npoints = npoints,
transform = NormalizePointCloud(),
)
I get the error: type #ModelNet10 has no field dataset
@margilc
As a workaround, here is what I did.
$ mkdir -p ~/dataset/pointcloud/modelnet
$ cd ~/dataset/pointcloud/modelnet
$ wget http://3dvision.princeton.edu/projects/2014/3DShapeNets/ModelNet10.zip
$ wget http://modelnet.cs.princeton.edu/ModelNet40.zip
$ unzip "*.zip"
$ julia -q
julia> using Flux3D
julia> using Flux3D: ModelNet10
julia> dset = ModelNet10(
root="~/dataset/pointcloud/modelnet" |> expanduser,
train=true,
)
julia> dset.categories
10-element Vector{String}:
"bathtub"
"bed"
"chair"
"desk"
"dresser"
"monitor"
"night_stand"
"sofa"
"table"
"toilet"
dset = ModelNet10(train=false,download=true)
@margilc