Efficient-Transformer icon indicating copy to clipboard operation
Efficient-Transformer copied to clipboard

train

Open twsha opened this issue 1 year ago • 6 comments

hello,i want to ask that I set multi-gpu training to single-gpu training,But report the following error:

image and I set it like this in the source code: image image

twsha avatar Mar 06 '23 08:03 twsha

How should I further set up the code to change to single gpu training

twsha avatar Mar 06 '23 08:03 twsha

Try this

zyxu1996 avatar Mar 06 '23 08:03 zyxu1996

CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --nproc_per_node=1 --master_port 29506 train.py

zyxu1996 avatar Mar 06 '23 08:03 zyxu1996

I train directly through the train file,find that it can't read dateset, can you tell me that below the annotaions file The train.txt under the annotations file have content? thank you so much!

image

twsha avatar Mar 06 '23 14:03 twsha

捕获

zyxu1996 avatar Mar 06 '23 16:03 zyxu1996

thanks

twsha avatar Mar 07 '23 01:03 twsha