Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having problems while training #10

Open
Siri-2001 opened this issue Sep 8, 2023 · 1 comment
Open

Having problems while training #10

Siri-2001 opened this issue Sep 8, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Siri-2001
Copy link

Hi! When I was trying to train the models by using "task train_slt", an error occured:
"task: Use at least 1 GPU to train the model
task: precondition not met"
However,my .env file is as follow:
FAIRSEQ_ROOT: /home/csr/slt_how2sign_wicv2023-wicv23/fairseq
SAVE_DIR: /home/csr/slt_how2sign_wicv2023-wicv23/data/how2sign/i3d_features
WANDB_ENTITY: CSR
WANDB_PROJECT: name_project_WANDB
NUM_GPUS: 1
VOCAB_SIZE: 7000
FEATS: i3d
PARTITION: train
DATA_DIR: /home/csr/slt_how2sign_wicv2023-wicv23/data/how2sign/i3d_features
CONFIG_DIR: /home/csr/slt_how2sign_wicv2023-wicv23/examples/sign_language/config/wicv_cvpr23/i3d_best

NUM_GPUS has already been set to 1.But Why the error occured?Thx a lot!

@Siri-2001 Siri-2001 added the question Further information is requested label Sep 8, 2023
@parsheeta
Copy link

I removed -gt 0 in the preconditions for NUM_GPUS and it resolved that error. I guess it doesn't make a big difference for me because I have 1 GPU anyways.

train_slt:
preconditions:
- sh: "[[ -d {{.DATA_DIR}} ]]"
msg: Specify the DATA_DIR in the .env file
- sh: "[[ {{.SAVE_DIR}} ]]"
msg: Specify the SAVE_DIR in the .env file
- sh: "[[ {{.WANDB_ENTITY}} ]]"
msg: Specify the WANDB_ENTITY in the .env file
- sh: "[[ {{.WANDB_PROJECT}} ]]"
msg: Specify the WANDB_PROJECT in the .env file
- sh: "[ {{.NUM_GPUS}} ]"
msg: Use at least 1 GPU to train the model
- sh: '[ "{{.EXPERIMENT}}" ]'
msg: Specify a name for the EXPERIMENT
- sh: '[ "{{.CONFIG_DIR}}/{{.EXPERIMENT}}.yaml" ]'
msg: The yaml does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants