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

ValueError: need at least one array to concatenate #14

Open
L6-hong opened this issue Jan 14, 2021 · 3 comments
Open

ValueError: need at least one array to concatenate #14

L6-hong opened this issue Jan 14, 2021 · 3 comments

Comments

@L6-hong
Copy link

L6-hong commented Jan 14, 2021

@liruihui Hello, I found this problem in the process of running the code. Do you know why? I hope you can give me some suggestions, thank you.

@L6-hong
Copy link
Author

L6-hong commented Jan 14, 2021

@liruihui This is the result of my running command:
checkpoints: log/pointnet_cls/20210114-1318
PARAMETER ...
Namespace(augment=False, batch_size=24, data_dir='ModelNet40_Folder', decay_rate=0.0001, epoch=250, epoch_per_save=5, learning_rate=0.001, learning_rate_a=0.001, log_dir='log/pointnet_cls/20210114-1318', lr_decay=0.5, model_name='pointnet', no_decay=False, noise_dim=1024, num_points=1024, optimizer='Adam', pretrain=None, restore=False, use_normal=False, y_rotated=True)
Load dataset ...
Traceback (most recent call last):
File "train_PA.py", line 22, in
model.train()
File "/floyd/home/Augment/model.py", line 64, in train
trainDataLoader = DataLoader(ModelNetDataLoader(self.opts, partition='train'),
File "/floyd/home/Common/ModelNetDataLoader.py", line 44, in init
self.data, self.label = load_data(opts.data_dir,partition=partition)
File "/floyd/home/Common/ModelNetDataLoader.py", line 26, in load_data
all_data = np.concatenate(all_data, axis=0)
File "<array_function internals>", line 6, in concatenate
ValueError: need at least one array to concatenate

@nickucas123
Copy link

Using format h5 datasets

@liruihui
Copy link
Owner

I think it may be about the dataset path.

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