DeepSolo icon indicating copy to clipboard operation
DeepSolo copied to clipboard

nan value

Open Gavinic opened this issue 1 year ago • 2 comments

when i try to train a thai model, there are some nan/inf accrued in DeformableTransformer. image and i check the out put of self.detection_transformer: the output is [nan, nan, nan,......] so i go to deeper: i have found that the problem is the forward of 'DeformableTransformer', but i don know how to fix it.

my config file is blew: BASE: "../Base_det.yaml"

MODEL: WEIGHTS: "" TRANSFORMER: VOC_SIZE: 230 NUM_POINTS: 50

DATASETS: TRAIN: ("thaicard_train",) TEST: ("thaicard_eval",)

SOLVER: IMS_PER_BATCH: 4 BASE_LR: 1e-4 LR_BACKBONE: 1e-4 WARMUP_ITERS: 0 STEPS: (320000,) MAX_ITER: 375000 CHECKPOINT_PERIOD: 100000

TEST: EVAL_PERIOD: 10000

OUTPUT_DIR: "output/vitaev2_s/thai_pre"

How to fix it ? Thank you!

Gavinic avatar Oct 15 '23 13:10 Gavinic

here is my train.json file. image image thank you!

Gavinic avatar Oct 15 '23 13:10 Gavinic

Modify configuration file parameters:MODEL.TRANSFORMER.VOC_SIZE: [yourself voc size]

xiaoming-master avatar Nov 09 '23 10:11 xiaoming-master