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

Cannot train with batch size > 1 #3

Open
prothej227 opened this issue Aug 15, 2022 · 2 comments
Open

Cannot train with batch size > 1 #3

prothej227 opened this issue Aug 15, 2022 · 2 comments

Comments

@prothej227
Copy link

image

Hi! I am having this issue when training with batch size > 1:

tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
  (0) Invalid argument:  Cannot add tensor to the batch: number of elements does not match. Shapes are: [tensor]: [119130,1], [batch]: [80000,1]
	 [[node IteratorGetNext (defined at train.py:117) ]]
  (1) Invalid argument:  Cannot add tensor to the batch: number of elements does not match. Shapes are: [tensor]: [119130,1], [batch]: [80000,1]
	 [[node IteratorGetNext (defined at train.py:117) ]]
	 [[Shape/_4]]
0 successful operations.
0 derived errors ignored. [Op:__inference_train_function_14011]

Function call stack:
train_function -> train_function
@bytosaur
Copy link
Member

it looks like your samples have a different size than I expect.
The model expects the sample to be 5sec @16kHz which is 80000 values.
Your input has 119130...

@danomatika
Copy link
Member

danomatika commented Aug 22, 2022 via email

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