Git Product home page Git Product logo

Comments (7)

yassouali avatar yassouali commented on September 12, 2024

Hi, I guess you only need to add the mode (fine or coarse) make sure you use bigger base and crop sizes given the size of the CS images; here is an example:

    "train_loader": {
        "type": "CityScapes",
        "args":{
            "data_dir": "/data/Cityscapes",
            "batch_size": 8,
            "base_size": 1024,
            "crop_size": 512,
            "augment": true,
            "shuffle": true,
            "scale": true,
            "flip": true,
            "rotate": true,
            "blur": false,
            "split": "train",
            "mode": "fine",
            "num_workers": 8
        }
    },

    "val_loader": {
        "type": "CityScapes",
        "args":{
            "data_dir": "/data/Cityscapes",
            "batch_size": 1,
            "val": true,
            "split": "val",
            "mode": "fine",
            "num_workers": 4
        }
    }

from pytorch-segmentation.

edizhuang avatar edizhuang commented on September 12, 2024

Hi Yassine,

Thanks for the quick reply. I see the original image size is 2018 * 1024, so here what's the input size and patch size for training? For validation are you using the original size?

from pytorch-segmentation.

edizhuang avatar edizhuang commented on September 12, 2024

from pytorch-segmentation.

yassouali avatar yassouali commented on September 12, 2024

First step is to resize the bigger size to 1024 (so 1024 x 512) then a scaling then a random crop of 512 x 512, for validation you can either take crops of 1024 with a bigger batch for quick processing, or use the original size with a batch of 1, accurate but slow.

from pytorch-segmentation.

edizhuang avatar edizhuang commented on September 12, 2024

Thanks!

from pytorch-segmentation.

edizhuang avatar edizhuang commented on September 12, 2024

from pytorch-segmentation.

yassouali avatar yassouali commented on September 12, 2024

With 4 GPUs, maybe the batch size is say 7, in this case each GPU will have 2 Images but the last one with one image, and his will give you an error, try a batch size = GPUs * 2 at least.

from pytorch-segmentation.

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.