VITA-Group / DeblurGANv2

[ICCV 2019] "DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better" by Orest Kupyn, Tetiana Martyniuk, Junru Wu, Zhangyang Wang
Other
1.01k stars 265 forks source link

How to test a 256×256 image? #49

Closed yff0815 closed 4 years ago

yff0815 commented 4 years ago

Hello ,good work, but I have a question. I want to test your model in my own data with the size of 256×256, and when I run the command with

python test_metrics.py --img_folder=./datasets/my_dataset/ --weights_path=./best_fpn.h5

the program will result in an error,

ValueError: operands could not be broadcast together with shapes (720,1280,3) (256,256,3)

I would like to know why the input with an image of 256×256×3, and then the output with the size of 720×1280×3. Looking forward to your reply?

lisishen commented 4 years ago

Hello, How to generate this file"best_fpn.h5", Is it generated form training? Thanks!

yff0815 commented 4 years ago

yes, I retrained the network, it generated the file "best_fpn.h5" and "lasted_fpn.h5".

lisishen commented 4 years ago

yes, I retrained the network, it generated the file "best_fpn.h5" and "lasted_fpn.h5".

WOW! How long does the training take? I found the picture resources is more than 10G.

yff0815 commented 4 years ago

I trained 200 epochs, spending more than 1day with 1080GTX.

pp00704831 commented 4 years ago

Hello, may I ask you which datasets do you use to train ? Because you spend just for more than 1 day, did you use only GoPro for training? Thank You!

yff0815 commented 4 years ago

yes, I train the network only using the GoPro dataset, which contains 2013 images to train and 1111 images to test. by the way, I'd like to know how to test images with the size of 256×256,do you have any idea?

pp00704831 commented 4 years ago

I got it, I am training the network right now. image I am not sure about your question, but may you can change the size here to (256,256)? You can try that for some test.

yff0815 commented 4 years ago

It works. Thank you very much!

pp00704831 commented 4 years ago

So, do you finish to test? When I tested with the test_metrics.py, it run pretty slowly for testing it should run quickly when only testing, so i have not finished the test part. And do you also download the GoPro datasets author given? Because i have about 2200 images for testing.

yff0815 commented 4 years ago

I spent about 8 minutes to test the GoPro dataset, which has 1111 test images with a size of 720×1280. I use 1080GTX. And testing a 256×256 image run fast.

pp00704831 commented 4 years ago

I got it, Thank you very much!

pp00704831 commented 4 years ago

image It looks pretty strange that i need to run so long for test... I will try to solve that thank you!

yff0815 commented 4 years ago

image when I test 720×1280 images. You can refer to the usage time of each picture.

lisishen commented 4 years ago

I trained 200 epochs, spending more than 1day with 1080GTX.

Hello, Can you help to upload the dataset to BaiDuNetwork disk , I can't download it from GoogleDrive, Thanks a lot!

Harsharma2308 commented 4 years ago

Hi could someone share the trained model h5 files?

NoviceCrom commented 4 years ago

I spent about 8 minutes to test the GoPro dataset, which has 1111 test images with a size of 720×1280. I use 1080GTX. And testing a 256×256 image run fast.

Hi, Testing on GoPro dataset costs me a long time on RTX 2060. Is there any suggestions to accelerate that?

yinglili666 commented 3 years ago

yes, I retrained the network, it generated the file "best_fpn.h5" and "lasted_fpn.h5".

hello, I want to ask you about training the network. I don't know how to change che config file, could you please tell me the method to train? And can you send me the trained model? thank you!