Hello
When I execute the code for the UNQ_C5 I get the following error:
tf.Tensor(17735.504, shape=(), dtype=float32)
AssertionError Traceback (most recent call last)
in
6 print(J1)
7 assert type(J1) == EagerTensor, f"Wrong type {type(J1)} != {EagerTensor}"
----> 8 assert np.isclose(J1, 25629.055, rtol=0.05), f"Unexpected cost for epoch 0: {J1} != {25629.055}"
9
10 J2 = train_step(generated_image)
AssertionError: Unexpected cost for epoch 0: 17735.50390625 != 25629.055
My code is (not sure if I am alloud to copy it)
#(1 line)
a_G = vgg_model_outputs(generated_image)
# Compute the style cost
#(1 line)
J_style = compute_style_cost(a_S, a_G)
#(2 lines)
# Compute the content cost
J_content = compute_content_cost(a_C, a_G)
# Compute the total cost
J = total_cost( J_content, J_style, alpha = 10, beta = 40)
Does anybody know why?
Thanks