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

main() problem. #53

Open
zhangbaijin opened this issue Nov 19, 2019 · 1 comment
Open

main() problem. #53

zhangbaijin opened this issue Nov 19, 2019 · 1 comment

Comments

@zhangbaijin
Copy link

Found 0 images belonging to 0 classes.
Traceback (most recent call last):
File "/home//PConv-Keras-master/main.py", line 180, in
test_data = next(test_generator)
File "/home//PConv-Keras-master/main.py", line 122, in flow_from_directory
for _ in range(ori.shape[0])], axis=0
File "/home/zxf/anaconda3/envs/tensorflow/lib/python3.6/site-packages/numpy/core/shape_base.py", line 412, in stack
raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack

excuse me . I follow the comand python main.py --name celeba --train ./data/celeba/train --validation ./data/celeba/val --test ./data/celeba/test --vgg_path './data/logs/pytorch_to_keras_vgg16.h5'
but there is no found files about mask and image, why?? i put masks dataset under ./data/masks/train/

@jiunyen-ching
Copy link

Are your images placed in a sub-folder in each train/test/val folder?
I assume your images are now placed like this:
Train: "./data/train/.png"
Test: "./data/test/
.png"
Val: "./data/val/*.png"

where they should be placed like this
Train: "./data/train/subdir_1/.png"
Test: "./data/test/subdir_1/
.png"
Val: "./data/val/subdir_1/*.png"

I guess number of subdirs in each train/test/val depends on your number of classes

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

2 participants