Tensorflow C2W3 - grader error

Hello

I get the grading error when submitting the horses vs humans with transfer learning assignment :

[Errno 2] Unable to synchronously open file (unable to open file: name = ‘/tf/model/inception_v3_weights_tf_dim_ordering_tf_kernels_notop.h5’, errno = 2, error message = ‘No such file or directory’, flags = 0, o_flags = 0)

even though I checked the directory and the file is there. Why am I getting the error ?

@tkuruc

can you share screenshot of the complete error.

Please make sure not to post any code here as it is against community guidelines

Hi, thanks for a reply, I just figured it out - the problem was, that I added

local_weights_file = ./model/inception_v3_weights_tf_dim_ordering_tf_kernels_notop.h5’ even though earlier in the code, it is assigned to LOCAL_WEIGHTS_FILE = … (same address).

After deleting the extra definition without capital letters it works

1 Like

hi @tkuruc

The issue is probably with the exercise 2

For grade cell create pre trained model

check your pre-trained model arguments are correctly recalled especially for weight which has been recalled as LOCAL_WEIGHT_FILE just before the grade cell.
See the below screenshot

I was responding the same issue at the same time you responded.
Great you could debug your code yourself.
Keep learning!!