HUSTSYJ / DA_dahazing

Domain Adaptation for Image Dehazing, CVPR2020
247 stars 40 forks source link

> > I have same problem #11

Open mengxzh15 opened 4 years ago

mengxzh15 commented 4 years ago

Hello,thanks for sharing! i want to test my pictures with the pretrained model downloaded provided but failed. "--dataroot ./datasets/dehazing --name run_test --learn_residual --resize_or_crop crop --display_port 8095 --which_model_netG resnet_9blocks --batchSize 1 --gpu_id 3 --model RDehazingnet --R_Dehazing_premodel ./checkpoints/run_danet_depth/netR_Dehazing.pth" which file should i use these orders above?test.py?

Did you test successfully? I have this problem.AssertionError: ./datasets/dehazing/train is not a valid directory

There are download url in document train.

_Originally posted by @inkeast in https://github.com/HUSTSYJ/DA_dahazing/issues/1#issuecomment-657229684_

anothersin commented 4 years ago

i replace this offline, but there is a another problem raised:

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8095): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff2f5fecb70>: Failed to establish a new connection: [Errno 111] Connection refused',))

Four97 commented 4 years ago

you need download trainsetand testset first.The author provided the link in readme , or you can find the link in the file ./datasets/dehazing

Four97 commented 4 years ago

i replace this offline, but there is a another problem raised:

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8095): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff2f5fecb70>: Failed to establish a new connection: [Errno 111] Connection refused',))

you need run the visdom first on the port 8095

GopiRajuMatta commented 3 years ago

Running below command before running the test code worked for me. python -m visdom.server, make sure that port is same.