Skip to content

Commit

Permalink
ef35a38ad29c@2024-05-08_09-14-01: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyunhang committed May 8, 2024
1 parent 8ea3c56 commit e79b148
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from detectron2.model_zoo import get_config as get_config_d2
from detrex.config import get_config as get_config_detrex
from ape.modeling.backbone.vit import get_vit_lr_decay_rate

from ape.modeling.text import EVA02CLIP

from ...common.backbone.vite_eva02_clip_1024 import backbone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@
clamp_min_for_underflow=True,
clamp_max_for_overflow=True,
use_checkpoint=True,
use_attention_mask_v=True,
# use_attention_mask_v=True,
)
model.model_vision.transformer.encoder.use_act_checkpoint = True

model.model_vision.text_feature_bank = True
model.model_vision.text_feature_bank_random_size = True
# model.model_vision.text_feature_bank_random_size = True
model.model_vision.text_feature_reduce_before_fusion = True
model.model_vision.text_feature_batch_repeat = True
model.model_vision.expression_cumulative_gt_class = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@
clamp_min_for_underflow=True,
clamp_max_for_overflow=True,
use_checkpoint=True,
use_attention_mask_v=True,
# use_attention_mask_v=True,
)
model.model_vision.transformer.encoder.use_act_checkpoint = True

model.model_vision.text_feature_bank = True
model.model_vision.text_feature_bank_random_size = True
# model.model_vision.text_feature_bank_random_size = True
model.model_vision.text_feature_reduce_before_fusion = True
model.model_vision.text_feature_batch_repeat = True
model.model_vision.expression_cumulative_gt_class = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

model.model_vision.num_classes = 1203
model.model_vision.select_box_nums_for_evaluation = 300
model.model_vision.test_score_thresh = 0.0
model.model_vision.criterion[0].num_classes = 1203
model.model_vision.criterion[0].use_fed_loss = True
model.model_vision.criterion[0].get_fed_loss_cls_weights = lambda: get_fed_loss_cls_weights(
Expand Down

0 comments on commit e79b148

Please sign in to comment.