Skip to content

How to setting dataset_root #6

@geminixiang

Description

@geminixiang

Hi~
Please help, I am in trouble...
I used to run download.sh to download dataset, then unzip it (got folder 'picture_files' & 'coordinate_files'), and put in this project's root.
But I have no idea to edit dataset_root in cnn_rotation.py,

2. Set dataset path or other settings in 'cnn_rotation.py'.
dataset_root = ${CUSTOMIZED_IMAGE_PRETRAIN_ROOT}

I've try fix it by

_sketch_img_root = './picture_files'
or
_sketch_img_root = './picture_files'

and use this command to run it

python train_cnn.py  --exp cnn_rotation  --num_workers 8 --gpu 0
but error
ValueError: num_samples should be a positive integer value, but got num_samples=0

which folder that it's pointed to is correct?
or I got it wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions