Code Monkey home page Code Monkey logo

Comments (6)

zhouzaida avatar zhouzaida commented on July 16, 2024 1

Hi @okotaku , the command mim train mmcls config.py --gpu-ids 1 --gpus 1 should work well because gpu-ids will be parsed as other_args and they will also be passed to train.py.

mim/mim/commands/train.py

Lines 150 to 151 in 08a99cf

other_args (tuple, optional): Other arguments, will be passed to the
codebase's training script. Defaults to ().

from mim.

kennymckormick avatar kennymckormick commented on July 16, 2024 1

Hi, okotaku. In mmcls, --gpu-ids and --gpus are two exclusive args. Maybe you can use CUDA_VISIBLE_DEVICES=1 mim train mmcls config.py --gpus 1 instead.

from mim.

okotaku avatar okotaku commented on July 16, 2024

Thank you!

from mim.

okotaku avatar okotaku commented on July 16, 2024

When I try to use mim train mmcls config.py --gpu-ids 1 --gpus 1 , I get the following error.

usage: train.py [-h] [--work-dir WORK_DIR] [--load-from LOAD_FROM] [--resume-from RESUME_FROM] [--no-validate] [--gpus GPUS | --gpu-ids GPU_IDS [GPU_IDS ...]] [--seed SEED]
                [--deterministic] [--options OPTIONS [OPTIONS ...]] [--cfg-options CFG_OPTIONS [CFG_OPTIONS ...]] [--launcher {none,pytorch,slurm,mpi}] [--local_rank LOCAL_RANK]
                config
train.py: error: argument --gpu-ids: not allowed with argument --gpus

from mim.

zhouzaida avatar zhouzaida commented on July 16, 2024

Please @kennymckormick have a look.

from mim.

okotaku avatar okotaku commented on July 16, 2024

Thank you!

from mim.

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.