lynx97 / moire_detection

moire detection using Haar transform
8 stars 4 forks source link

inference #1

Open world2025 opened 4 years ago

world2025 commented 4 years ago

hello,thanks for your codes, i want to know when i test, how large the image size

world2025 commented 4 years ago

@lynx97 res = model.predict([batch_ll, batch_lh, batch_hl]) ValueError: Error when checking input: expected input_1 to have shape (482, 642, 1) but got array with shape (3024, 2018, 4) 您好!我在推理的时候遇到这个问题了,可以帮忙看一下吗?谢谢!

lynx97 commented 4 years ago

the model gets input with shape (482, 642, 1) with (h, w, c)

world2025 commented 4 years ago

@lynx97 can you help me solve the problem?es = model.predict([batch_ll, batch_lh, batch_hl]) ValueError: Error when checking input: expected input_1 to have shape (482, 642, 1) but got array with shape (3024, 2018, 4),thanks

world2025 commented 4 years ago

hello, can you help me ? i need your help,thank you

world2025 commented 4 years ago

in the training.py file: ll1, lh1, hl1 = DWT(preproces_data(path_1, (1280, 960))) in the inference.py file: ll0, lh0, hl0 = DWT(img) is there problem? can you help me? thank you

world2025 commented 4 years ago

can you tell me how can i use your codes for my datasets? thank you

1138886114 commented 3 years ago

@tkone2018 Have you solved your problem? If it is solved, how can I do it? Thank you very much

world2025 commented 1 year ago

@1138886114 no