train_ds = tf.keras.preprocessing.image_dataset_from_directory(
'/content/dataset/',
image_size=(64,64),
batch_size=64,
subset='training',
validation_split=0.2,
seed=1234
)
이렇게 코드를 짜서 돌렸는데 seed부분에서 에러가 납니다.
에러 코드는
ValueError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py in _apply_op_helper(op_type_name, name, **keywords)
521 as_ref=input_arg.is_ref,
--> 522 preferred_dtype=default_dtype)
523 except TypeError as err:
21 frames
ValueError: Tensor conversion requested dtype string for Tensor with dtype float32: <tf.Tensor 'args_0:0' shape=() dtype=float32>
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py in _apply_op_helper(op_type_name, name, **keywords)
543 if input_arg.type != types_pb2.DT_INVALID:
544 raise TypeError("%s expected type of %s." %
--> 545 (prefix, dtypes.as_dtype(input_arg.type).name))
546 else:
547 # Update the maps with the default, if needed.
TypeError: Input 'filename' of 'ReadFile' Op has type float32 that does not match expected type of string.
이런 에러가 나는데 해결 방안이 없을까요??