-
Notifications
You must be signed in to change notification settings - Fork 2
Highway network Predict.py #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
bangoc123
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ủa mà sao code bên này cũng có model thế em?
| # Load test images from folder | ||
| # image = tf.keras.preprocessing.image.load_img(args.test_file_path, target_size=(args.image_size, args.image_size)) | ||
| # image = tf.image.rgb_to_grayscale( | ||
| # image, name=None | ||
| # ) | ||
| # input_arr = tf.keras.preprocessing.image.img_to_array(image) | ||
| # img = input_arr.reshape(-1,28,28,1).astype("float32") / 255 | ||
|
|
||
| # Normalize data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ủa sao chỗ này nhiều comment thế em nếu không dùng thì remove nhé @Quan030994
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dạ vâng anh, có gì anh xem giúp em file predict nếu cần sửa thì em sửa lại luôn và push lại ạ.
| # Normalize data | ||
|
|
||
| # x_train = train_images.reshape(60000, 784).astype("float32") / 255 | ||
| img = test_images.reshape(-1, 28, 28, 1).astype("float32") / 255 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Quan030994 dùng tham số image-size ở bên trên khi truyền vào file.
Dear anh Ngọc,
Em có submit phần predict cho Highway network anh xem giúp em ạ.
E cảm ơn anh.