Flux3D.jl icon indicating copy to clipboard operation
Flux3D.jl copied to clipboard

ModelNet10 dataset not loading

Open margilc opened this issue 2 years ago • 2 comments

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 avatar Jul 02 '22 14:07 margilc

@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"

terasakisatoshi avatar Oct 14 '22 03:10 terasakisatoshi

dset = ModelNet10(train=false,download=true)

@margilc

nirmal-suthar avatar Nov 03 '22 05:11 nirmal-suthar