
Graph_function, _, _ = self._maybe_define_function(args, kwargs)įile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\eager\function.py", line 2150, in _maybe_define_function

Self._initialize(args, kwds, add_initializers_to=initializer_map)įile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\eager\def_function.py", line 408, in _initializeįile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\eager\function.py", line 1848, in _get_concrete_function_internal_garbage_collected History = model.fit(ds, epochs=10, verbose=1)įile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\keras\engine\training.py", line 728, in fitįile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py", line 324, in fitįile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py", line 123, in run_one_epochīatch_outs = execution_function(iterator)įile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\keras\engine\training_v2_utils.py", line 86, in execution_functionįile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\eager\def_function.py", line 457, in _call_įile "C:\Users\gus\Anaconda3\envs\TF2\lib\site-packages\tensorflow_core\python\eager\def_function.py", line 503, in _call Img_shape = (input_shape, input_shape)ĭs = tf._generator(train_datagen.flow_from_directory,Īrgs=, output_types=(tf.float32, tf.float32))įile "C:/Users/gus/Documents/ImageSimularity/FoodTrainer.py", line 75, in Images, labels = next(train_datagen.flow_from_directory(DATA_PATH)) Here is the code that I am using to generate the code augment = Trueįill_mode='nearest') # set validation split There 4 forlders have 72 or so images in them. This I assume will be the label as like the old keras method.

I have a Data folder where there are 4 folder for each type of category. I am trying to use the Dataset with TF2.0 along with keras ImageDataGenerator, but when I try to call it it give me an error.
