So, I am again trying to run this Inception v3 fine tuning with keras, i think there is some problem with the arrays. I've already seen the other posts on these topics, but now i don´t know what to do. I don't have a lot of experience. So any help would be appreciated.
Here is the entire code https://github.com/c3s4grod/PecuScope
And this is the error that appears:
Traceback (most recent call last):
File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\utils\data_utils.py", line 578, in get inputs = self.queue.get(block=True).get() File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\multiprocessing\pool.py", line 644, in get raise self._value File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\utils\data_utils.py", line 401, in get_index return _SHARED_SEQUENCES[uid][i] File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\preprocessing\image.py", line 1034, in getitem return self._get_batches_of_transformed_samples(index_array) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\preprocessing\image.py", line 1442, in _get_batches_of_transformed_samples batch_x[i] = x ValueError: could not broadcast input array from shape (8,8,3) into shape (8,8,2048,3)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:/Users/Shangai/PycharmProjects/PSai/INCEPTION.py", line 234, in validation_steps=steps_test) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\models.py", line 1315, in fit_generator initial_epoch=initial_epoch) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\engine\training.py", line 2194, in fit_generator generator_output = next(output_generator) File "C:\Users\Shangai\AppData\Local\conda\conda\envs\PSAI\lib\site-packages\keras\utils\data_utils.py", line 584, in get six.raise_from(StopIteration(e), e) File "", line 2, in raise_from StopIteration: could not broadcast input array from shape (8,8,3) into shape (8,8,2048,3)