C1W4_Assignment

I’m getting an error before training and I think it has something to do with the callback function, but I’ve already reworked my callback and the error still comes up. Can anybody help me out here?

I set my directory to “./data/” to capture both categories.

/opt/conda/lib/python3.8/site-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs)
65 except Exception as e: # pylint: disable=broad-except
66 filtered_tb = _process_traceback_frames(e.traceback)
—> 67 raise e.with_traceback(filtered_tb) from None
68 finally:
69 del filtered_tb

/opt/conda/lib/python3.8/site-packages/keras/callbacks.py in set_model(self, model)
283 model.history = self._history
284 for callback in self.callbacks:
→ 285 callback.set_model(model)
286
287 def _call_batch_hook(self, mode, hook, batch, logs=None):

AttributeError: ‘str’ object has no attribute ‘set_model’

Examine the object assigned to callbacks in the model.fit() statement

See here for reference:

i have also the same issue.
Did you solve it? kindly help.