GithubHelp home page GithubHelp logo

Comments (12)

JiaminRen avatar JiaminRen commented on May 27, 2024

What problem? I will give a example soon.

from switchable-normalization.

stillwaterman avatar stillwaterman commented on May 27, 2024

@JiaminRen my code is stuck at dist.broadcast, no error message, backend is nccl. Do you test the train code or what configuration I didn’t do

from switchable-normalization.

JiaminRen avatar JiaminRen commented on May 27, 2024

which task did you test? imagenet or face recognition?

from switchable-normalization.

stillwaterman avatar stillwaterman commented on May 27, 2024

@JiaminRen I just tried to imitate your train code in face recognition to use SyncSN in my code, but
I didn't succeed. I met two problem, frist, rank = int(os.environ['RANK']) and world_size = int(os.environ['WORLD_SIZE']) don't have values, so I added some code os.environ['RANK']=str(0), os.environ['WORLD_SIZE']=str(4), second is dist.broadcast

from switchable-normalization.

JiaminRen avatar JiaminRen commented on May 27, 2024

Have you changed any code? Just running the script face_recognition/train.sh will be ok.

from switchable-normalization.

stillwaterman avatar stillwaterman commented on May 27, 2024

@JiaminRen I quickly test the face_recognition train.py, unfortunately I met the same problems. I think maybe some system configurations I missed.

from switchable-normalization.

stillwaterman avatar stillwaterman commented on May 27, 2024

@JiaminRen my system is ubuntu18.04 and I use ananconda to install pytorch, program is stuck at dist.broadcast

from switchable-normalization.

JiaminRen avatar JiaminRen commented on May 27, 2024

This is a distributed framework, and it should be run on multi-gpus by using torch.distributed.launch.

from switchable-normalization.

stillwaterman avatar stillwaterman commented on May 27, 2024

Thanks, torch.distributed.launch can solve problems. But sync way consumes a lot of GPU memory, always out of memory

from switchable-normalization.

stillwaterman avatar stillwaterman commented on May 27, 2024

Sorry to bother you again. Actually, when I was using SyncSN, I got some different errors. I tried to imitate the way you used in train.py, but my model outputs NaNs, which will not happened in SN. Another error is subprocess.CalledProcessError: Command returned non-zero exit 1. Do you have any idea? Thanks

from switchable-normalization.

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.