Coder Social home page Coder Social logo

apex version about pcme HOT 3 CLOSED

hellerguyh avatar hellerguyh commented on July 18, 2024
apex version

from pcme.

Comments (3)

SanghyukChun avatar SanghyukChun commented on July 18, 2024

Hello, you can use the official docker from dockerhub for reproducing my environment

docker pull sanghyukchun/pcme:torch1.2-apex-dali

https://hub.docker.com/layers/sanghyukchun/pcme/torch1.2-apex-dali/images/sha256-cd64cd5dcb06f8036e7d531bb9549d00a67005384fa7aa2b2e55ca773a7af2f0?context=explore

Also, when I checked pip freeze | grep apex
I got apex==0.1

Hope this answer can help you

from pcme.

SanghyukChun avatar SanghyukChun commented on July 18, 2024

BTW, you can omit apex if you do not use the FP16 option. Just set use_fp16: False from the configuration
https://github.com/naver-ai/pcme/blob/main/config/coco/pcme_coco.yaml#L61

or, simply

python train.py <default options> --train__use_fp16 0

from pcme.

hellerguyh avatar hellerguyh commented on July 18, 2024

Appreciate your assistance!
After some experimentation, I found that using torch==1.8.0+cu111, torchvision=0.9.0+cu111, and torchtext==0.5.0 resolves the issue. Upgrading to this version of torch enabled integration with apex, although using the --train__use_fp16 option also provided a viable solution. The specific apex commit id that worked for me was ae75763.

On another note, I recommend adding pyyaml==5.4.1 to the requirements file. Newer versions of pyyaml alter the API, making them incompatible with the project code.

from pcme.

Related Issues (10)

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.