You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ".../unet/model.py", line 212, in fit_dataset **val_logs, **train_logs} UnboundLocalError: local variable 'val_logs' referenced before assignment
The val_dataset argument to fit_dataset is optional. However, if none is provided, val_logs is not assigned. Anyway it is referenced, leading to this error.
Suggested fix: Add val_logs = {} to the else clause of if val_dataset is not None: in fit_dataset
The text was updated successfully, but these errors were encountered:
File ".../unet/model.py", line 212, in fit_dataset **val_logs, **train_logs} UnboundLocalError: local variable 'val_logs' referenced before assignment
The
val_dataset
argument tofit_dataset
is optional. However, if none is provided,val_logs
is not assigned. Anyway it is referenced, leading to this error.Suggested fix: Add
val_logs = {}
to theelse
clause ofif val_dataset is not None:
infit_dataset
The text was updated successfully, but these errors were encountered: