GithubHelp home page GithubHelp logo

ConnectionResetError: [Errno 104] Connection reset by peer AND ValueError: Expected input batch_size (423) to match target batch_size (465). about upsnet HOT 4 CLOSED

uber-research avatar uber-research commented on May 28, 2024
ConnectionResetError: [Errno 104] Connection reset by peer AND ValueError: Expected input batch_size (423) to match target batch_size (465).

from upsnet.

Comments (4)

YuwenXiong avatar YuwenXiong commented on May 28, 2024

This error means you encounter training failure (usually because lr is too large), please note that upsnet_resnet50_coco.yaml is for 16 GPUs w/ Horovod, if you use that config w/o Horovod then you will only use 1 GPU and lr will be too large (however due to the warmup you may not encounter that issue at the beginning). If that is the case, please use upsnet_resnet50_coco_4gpu.yaml instead.

from upsnet.

Xiaolongbetter avatar Xiaolongbetter commented on May 28, 2024

Thanks for your patience. The truth seems to be true. When I only use 1 GPU with upsnet_resnet50_coco.yaml, this error will appear around batch[300]. When I use 2 GPUs with upsnet_resnet50_coco_4gpu.yaml, this error will appear around batch[12000]. If I want to use two GPU training, can I guarantee the normal operation by reducing the lr in upsnet_resnet50_coco_4gpu.yaml, or I need to have at least 4 GPUs?

from upsnet.

YuwenXiong avatar YuwenXiong commented on May 28, 2024

Then please double #iter and reduce lr by 2x

from upsnet.

Xiaolongbetter avatar Xiaolongbetter commented on May 28, 2024

Thank you very much for your answer.

from upsnet.

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.