Coder Social home page Coder Social logo

Comments (7)

chxy95 avatar chxy95 commented on July 29, 2024 2

@KyriaAnnwyn 512x512 is really a large input size, which may cost about 20G memory for HAT-L on SRx2. You might consider testing the image in overlapping patches then merging together for limited GPU resources.

from hat.

BitCalSaul avatar BitCalSaul commented on July 29, 2024 1

Hello @chxy95, I've trained a super-resolution model with a scaling factor of 1, setting the gt_size parameter to 64, despite my dataset comprising images of (512, 512) dimensions. I believe the DataLoader automatically crops these images to the specified gt_size of 64. My query pertains to the inference process using hat/test.py. Specifically, does the script perform inference on individual (64, 64) segments of the larger (512, 512) images and then stitch these segments back together to reconstruct the full (512, 512) image? Any clarification on this would be greatly appreciated.

from hat.

chxy95 avatar chxy95 commented on July 29, 2024

@KyriaAnnwyn What are the specific settings? GPU oom may occur when the input size is too large, especially for HAT-L on SRx2.

from hat.

KyriaAnnwyn avatar KyriaAnnwyn commented on July 29, 2024

I tried SRx2 and SRx4 for 512x512 images. Both led to GPU OOM. CPU ran ok, but took a lot of time

from hat.

chxy95 avatar chxy95 commented on July 29, 2024

I will test the memory requirement for the models and provide a solution for limited GPU resources for testing.

from hat.

KyriaAnnwyn avatar KyriaAnnwyn commented on July 29, 2024

@chxy95 Thank you

from hat.

chxy95 avatar chxy95 commented on July 29, 2024

The tile mode is provided for limited GPU memory when testing. The setting can be referred to

tile: # use the tile mode for limited GPU memory when testing.
tile_size: 256 # the higher, the less utilized GPU memory. must be an integer multiple of the window size.
tile_pad: 32 # overlapping between adjacency patches.must be an integer multiple of the window size.

from hat.

Related Issues (20)

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.