Coder Social home page Coder Social logo

Comments (6)

liyucs avatar liyucs commented on July 21, 2024

Thank you for your attention to our work!
You can avoid this problem by resizing it before testing (e.g.,300*400). The result is as follows:
0_t

We didn't meet similar problem in our tests. By testing this image using another checkpoint in a different epoch, the problem didn't show up either. We will keep watching the issue.
Besides, the provided checkpoint was trained with data in relatively low resolution (224*224). There is a domain gap between datasets. Better performance could be achieved by finetuning the model with more images from your target domain (scenario/resolution).

from ragnet.

mwsunshine avatar mwsunshine commented on July 21, 2024

Thank you for your attention to our work!
You can avoid this problem by resizing it before testing (e.g.,300*400). The result is as follows:
0_t

We didn't meet similar problem in our tests. By testing this image using another checkpoint in a different epoch, the problem didn't show up either. We will keep watching the issue.
Besides, the provided checkpoint was trained with data in relatively low resolution (224*224). There is a domain gap between datasets. Better performance could be achieved by finetuning the model with more images from your target domain (scenario/resolution).

Thank you for your quick response!

I could understand the size of outputs depends heavily on the size of training, so I resized my image to the resolution of 400x300 and rerun the code. However, It's quite strange my result is very different from the one you showed:
3_t
What I did is resize the image to 400x300 -> move the image to the folder ./testsets/real45 -> run python test.py.
I use the model provided by the webside(pretrain.pth)

from ragnet.

liyucs avatar liyucs commented on July 21, 2024

I also used the model released to get the result I showed. There are two ways to get it:
(1) resize input image to 400*300 first, you can get input image as bellow, then move the image to the folder ./testsets/real45 -> run python test.py.
0_b
(2) put the image in original size to the folder ./testsets/real45 -> change line 191 to
test_dataset_real45 = TestDataset(image_list_real45,gt_list_real45,transform=True,if_GT=False) -> run python test.py.

from ragnet.

mwsunshine avatar mwsunshine commented on July 21, 2024

I also used the model released to get the result I showed. There are two ways to get it:
(1) resize input image to 400*300 first, you can get input image as bellow, then move the image to the folder ./testsets/real45 -> run python test.py.
0_b
(2) put the image in original size to the folder ./testsets/real45 -> change line 191 to
test_dataset_real45 = TestDataset(image_list_real45,gt_list_real45,transform=True,if_GT=False) -> run python test.py.

I get the reason why our results are different:
Your input is slightly different from mine(you can compare yours with my uploaded image). With your input, I can get the same result as yours.

I checked whether it is the format that matters for the difference. The answer is no. I used the second method as you mentioned, the results are still different.

I think the slight difference for the inputs is the root cause. Maybe you can try the input following:
066_0_1280x960_1

from ragnet.

liyucs avatar liyucs commented on July 21, 2024

I can get the result I uploaded with both methods 1&2. The resizing and saving codes I used are the same as those in line 95 and line 133 of test.py respectively.
The version of OpenCV is '4.1.0', maybe you should use the same version as mine to get the result. Besides, the image you uploaded is in jpg (23.5k), saving the image directly in png (224.6k) after resizing may work. 

from ragnet.

mwsunshine avatar mwsunshine commented on July 21, 2024

I can get the result I uploaded with both methods 1&2. The resizing and saving codes I used are the same as those in line 95 and line 133 of test.py respectively.
The version of OpenCV is '4.1.0', maybe you should use the same version as mine to get the result. Besides, the image you uploaded is in jpg (23.5k), saving the image directly in png (224.6k) after resizing may work.

Sure, I will check with the way you did! Thank you for your information!
I will close this question

from ragnet.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.