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

Input Data Mismatch #10

Open
Lijingze666 opened this issue Aug 29, 2024 · 0 comments
Open

Input Data Mismatch #10

Lijingze666 opened this issue Aug 29, 2024 · 0 comments

Comments

@Lijingze666
Copy link

When I use my own data to train the model, the following error is prompted. What changes do I need to make to the input data to run the program normally?
Traceback (most recent call last):
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/run.py", line 185, in
run(config, args.resume)
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/run.py", line 127, in run
trainer.train(train_dataloader, validate_dataloaders)
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/audiozen/trainer/base_trainer_gan_accelerate_ddp_validate.py", line 280, in train
loss_dict = self.training_step(batch, batch_idx)
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/trainer.py", line 63, in training_step
enhanced_y, enhanced_mag, *_ = self.model_g(noisy_y)
File "/home/yangjingwen/anaconda3/envs/spiking-fullsubnet/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/yangjingwen/anaconda3/envs/spiking-fullsubnet/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/model_low_freq.py", line 588, in forward
df_coefs_list, sb_all_layer_outputs = self.sb_model(noisy_mag, fb_output)
File "/home/yangjingwen/anaconda3/envs/spiking-fullsubnet/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/yangjingwen/anaconda3/envs/spiking-fullsubnet/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/model_low_freq.py", line 477, in forward
sb_model_input = self.norm(sb_model_input)
File "/home/yangjingwen/spiking-fullsubnet-main/recipes/intel_ndns/spiking_fullsubnet_freeze_phase/model_low_freq.py", line 182, in cumulative_laplace_norm
batch_size, num_channels, num_freqs, num_frames = input.size()
ValueError: too many values to unpack (expected 4)

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

1 participant