zyxu1996 / Efficient-Transformer

Online !!! Application of an efficient transformer improved based on Swin transformer on remote sensing segmentation
Apache License 2.0
72 stars 7 forks source link

train #6

Open twsha opened 1 year ago

twsha commented 1 year ago

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 commented 1 year ago

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

zyxu1996 commented 1 year ago

Try this

zyxu1996 commented 1 year ago

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

twsha commented 1 year ago

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

zyxu1996 commented 1 year ago

捕获

twsha commented 1 year ago

thanks