Coder Social home page Coder Social logo

Comments (3)

1234gary avatar 1234gary commented on August 27, 2024

Hey Denis,

Looking at your config I can see two things that might cause issues.

  1. Around line 34 you should use 'whole' testing instead of sliding window testing
    test_cfg=dict(mode='whole'))

  2. Around line 115 and 139 your resize should have keep_ratio=False, otherwise the dimensions will keep the original image ratio.
    dict(type='Resize', keep_ratio=False),

I've ran your config and wasn't able to get the error you got. My guess is some of these things are happening:

  1. The validation inputs might not be loaded with the correct size
  2. Ht and Wt aren't matching the actual dimensions of the input (perhaps the input isn't being downsampled properly?)

Could you try checking those values?

Those dimension numbers look quite strange to me, as I would expect 512x512 to be downsampled maybe 16x in layer 3 to be 32x32 = 1024. Ht * Wt = 920 in your case isn't a square number as you would expect, and 1802240 corresponds to a [1, 128, 16, 880] dimension.

from hila.

DenisN03 avatar DenisN03 commented on August 27, 2024

Thanks for your help Gary.

I changed the keep_ratio setting to False and that did the trick.

Now I am facing another problem. After testing is complete, an error occurs:

/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 20 leaked semaphores to clean up at shutdown
  len(cache))

During the testing phase, RAM consumption increases very much.
At the end of the test swap overflow and the script stops.
Снимок экрана от 2022-07-19 08-39-51
Снимок экрана от 2022-07-19 08-38-59
Снимок экрана от 2022-07-19 08-40-55

from hila.

1234gary avatar 1234gary commented on August 27, 2024

Hey Denis,

Are you able to get the test results? What is the exact line that you are running for evaluation? It's hard for me to diagnose what the issue might be without those.

I know that F-Score can be very heavy on the RAM and for that reason, if you are running F-Score you might want to run it in batches and average the scores together. This will result in the same results as if you ran the F-Score on all images at once.

from hila.

Related Issues (2)

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.