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

nan value #49

Open
Gavinic opened this issue Oct 15, 2023 · 2 comments
Open

nan value #49

Gavinic opened this issue Oct 15, 2023 · 2 comments

Comments

@Gavinic
Copy link

Gavinic commented Oct 15, 2023

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
Copy link
Author

Gavinic commented Oct 15, 2023

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

@xiaoming-master
Copy link

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

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

No branches or pull requests

2 participants