# Compute the test accuracy
- quizzes = generate_quiz_set(args.nb_test_samples, c_quizzes, args.c_quiz_multiplier)
+ quizzes = generate_quiz_set(
+ args.nb_test_samples, test_c_quizzes, args.c_quiz_multiplier
+ )
imt_set = samples_for_prediction_imt(quizzes.to(local_device))
result = ae_predict(model, imt_set, local_device=local_device).to("cpu")
correct = (quizzes == result).min(dim=1).values.long()
)
save_inference_images(
- model, n_epoch, c_quizzes, args.c_quiz_multiplier, local_device=local_device
+ model,
+ n_epoch,
+ train_c_quizzes,
+ args.c_quiz_multiplier,
+ local_device=local_device,
)