Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModelNet10 dataset not loading #64

Open
margilc opened this issue Jul 2, 2022 · 2 comments
Open

ModelNet10 dataset not loading #64

margilc opened this issue Jul 2, 2022 · 2 comments

Comments

@margilc
Copy link

margilc commented Jul 2, 2022

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

@terasakisatoshi
Copy link
Contributor

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

@nirmal-suthar
Copy link
Contributor

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

@margilc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants