MagNet icon indicating copy to clipboard operation
MagNet copied to clipboard

demo.py: error: --sub_batch_size

Open yongjilee opened this issue 3 years ago • 2 comments

usage: demo.py [-h] --dataset DATASET [--root ROOT] [--datalist DATALIST] --scales SCALES --crop_size N
[N ...] --input_size N [N ...] [--num_workers NUM_WORKERS] --model MODEL --num_classes
NUM_CLASSES --pretrained PRETRAINED [--pretrained_refinement PRETRAINED_REFINEMENT [PRETRAINED_REFINEMENT ...]] [--image IMAGE] --sub_batch_size SUB_BATCH_SIZE [--n_patches N_PATCHES] --n_points N_POINTS [--smooth_kernel SMOOTH_KERNEL] [--save_pred] [--save_dir SAVE_DIR] demo.py: error: --sub_batch_size

yongjilee avatar Dec 16 '22 09:12 yongjilee

What is this? How can I deal with this problem? thank you.

yongjilee avatar Dec 16 '22 09:12 yongjilee

sub_batch_size is the batch size to refine patches. You can set it > 1 if you have larger GPUs. Larger sub_batch_size helps speeding up the inference time.

hmchuong avatar Dec 16 '22 14:12 hmchuong