How to disable the log message of c2_model_loading]: Following weights matched with model:
See original GitHub issueI dont know when and which d2 version I updated, it now always prints me this:
[06/27 16:09:44 fvcore.common.checkpoint]: [Checkpointer] Loading from output/coco_yolo2_mbv3/model_0079999.pth ...
[06/27 16:09:46 d2.checkpoint.c2_model_loading]: Following weights matched with model:
| Names in Model | Names in Checkpoint | Shapes |
|:--------------------------------------------|:------------------------------------------------------------------------------------------------|:-------------------------------|
| backbone.features.0.0.weight | backbone.features.0.0.weight | (16, 3, 3, 3) |
| backbone.features.0.1.* | backbone.features.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (16,) () (16,) (16,) (16,) |
| backbone.features.1.block.0.0.weight | backbone.features.1.block.0.0.weight | (16, 1, 3, 3) |
| backbone.features.1.block.0.1.* | backbone.features.1.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (16,) () (16,) (16,) (16,) |
| backbone.features.1.block.1.fc1.* | backbone.features.1.block.1.fc1.{bias,weight} | (8,) (8,16,1,1) |
| backbone.features.1.block.1.fc2.* | backbone.features.1.block.1.fc2.{bias,weight} | (16,) (16,8,1,1) |
| backbone.features.1.block.2.0.weight | backbone.features.1.block.2.0.weight | (16, 16, 1, 1) |
| backbone.features.1.block.2.1.* | backbone.features.1.block.2.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (16,) () (16,) (16,) (16,) |
| backbone.features.10.block.0.0.weight | backbone.features.10.block.0.0.weight | (576, 96, 1, 1) |
| backbone.features.10.block.0.1.* | backbone.features.10.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (576,) () (576,) (576,) (576,) |
| backbone.features.10.block.1.0.weight | backbone.features.10.block.1.0.weight | (576, 1, 5, 5) |
| backbone.features.10.block.1.1.* | backbone.features.10.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (576,) () (576,) (576,) (576,) |
| backbone.features.10.block.2.fc1.* | backbone.features.10.block.2.fc1.{bias,weight} | (144,) (144,576,1,1) |
| backbone.features.10.block.2.fc2.* | backbone.features.10.block.2.fc2.{bias,weight} | (576,) (576,144,1,1) |
| backbone.features.10.block.3.0.weight | backbone.features.10.block.3.0.weight | (96, 576, 1, 1) |
| backbone.features.10.block.3.1.* | backbone.features.10.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (96,) () (96,) (96,) (96,) |
| backbone.features.11.block.0.0.weight | backbone.features.11.block.0.0.weight | (576, 96, 1, 1) |
| backbone.features.11.block.0.1.* | backbone.features.11.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (576,) () (576,) (576,) (576,) |
| backbone.features.11.block.1.0.weight | backbone.features.11.block.1.0.weight | (576, 1, 5, 5) |
| backbone.features.11.block.1.1.* | backbone.features.11.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (576,) () (576,) (576,) (576,) |
| backbone.features.11.block.2.fc1.* | backbone.features.11.block.2.fc1.{bias,weight} | (144,) (144,576,1,1) |
| backbone.features.11.block.2.fc2.* | backbone.features.11.block.2.fc2.{bias,weight} | (576,) (576,144,1,1) |
| backbone.features.11.block.3.0.weight | backbone.features.11.block.3.0.weight | (96, 576, 1, 1) |
| backbone.features.11.block.3.1.* | backbone.features.11.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (96,) () (96,) (96,) (96,) |
| backbone.features.12.0.weight | backbone.features.12.0.weight | (576, 96, 1, 1) |
| backbone.features.12.1.* | backbone.features.12.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (576,) () (576,) (576,) (576,) |
| backbone.features.2.block.0.0.weight | backbone.features.2.block.0.0.weight | (72, 16, 1, 1) |
| backbone.features.2.block.0.1.* | backbone.features.2.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (72,) () (72,) (72,) (72,) |
| backbone.features.2.block.1.0.weight | backbone.features.2.block.1.0.weight | (72, 1, 3, 3) |
| backbone.features.2.block.1.1.* | backbone.features.2.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (72,) () (72,) (72,) (72,) |
| backbone.features.2.block.2.0.weight | backbone.features.2.block.2.0.weight | (24, 72, 1, 1) |
| backbone.features.2.block.2.1.* | backbone.features.2.block.2.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (24,) () (24,) (24,) (24,) |
| backbone.features.3.block.0.0.weight | backbone.features.3.block.0.0.weight | (88, 24, 1, 1) |
| backbone.features.3.block.0.1.* | backbone.features.3.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (88,) () (88,) (88,) (88,) |
| backbone.features.3.block.1.0.weight | backbone.features.3.block.1.0.weight | (88, 1, 3, 3) |
| backbone.features.3.block.1.1.* | backbone.features.3.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (88,) () (88,) (88,) (88,) |
| backbone.features.3.block.2.0.weight | backbone.features.3.block.2.0.weight | (24, 88, 1, 1) |
| backbone.features.3.block.2.1.* | backbone.features.3.block.2.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (24,) () (24,) (24,) (24,) |
| backbone.features.4.block.0.0.weight | backbone.features.4.block.0.0.weight | (96, 24, 1, 1) |
| backbone.features.4.block.0.1.* | backbone.features.4.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (96,) () (96,) (96,) (96,) |
| backbone.features.4.block.1.0.weight | backbone.features.4.block.1.0.weight | (96, 1, 5, 5) |
| backbone.features.4.block.1.1.* | backbone.features.4.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (96,) () (96,) (96,) (96,) |
| backbone.features.4.block.2.fc1.* | backbone.features.4.block.2.fc1.{bias,weight} | (24,) (24,96,1,1) |
| backbone.features.4.block.2.fc2.* | backbone.features.4.block.2.fc2.{bias,weight} | (96,) (96,24,1,1) |
| backbone.features.4.block.3.0.weight | backbone.features.4.block.3.0.weight | (40, 96, 1, 1) |
| backbone.features.4.block.3.1.* | backbone.features.4.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (40,) () (40,) (40,) (40,) |
| backbone.features.5.block.0.0.weight | backbone.features.5.block.0.0.weight | (240, 40, 1, 1) |
| backbone.features.5.block.0.1.* | backbone.features.5.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (240,) () (240,) (240,) (240,) |
| backbone.features.5.block.1.0.weight | backbone.features.5.block.1.0.weight | (240, 1, 5, 5) |
| backbone.features.5.block.1.1.* | backbone.features.5.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (240,) () (240,) (240,) (240,) |
| backbone.features.5.block.2.fc1.* | backbone.features.5.block.2.fc1.{bias,weight} | (64,) (64,240,1,1) |
| backbone.features.5.block.2.fc2.* | backbone.features.5.block.2.fc2.{bias,weight} | (240,) (240,64,1,1) |
| backbone.features.5.block.3.0.weight | backbone.features.5.block.3.0.weight | (40, 240, 1, 1) |
| backbone.features.5.block.3.1.* | backbone.features.5.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (40,) () (40,) (40,) (40,) |
| backbone.features.6.block.0.0.weight | backbone.features.6.block.0.0.weight | (240, 40, 1, 1) |
| backbone.features.6.block.0.1.* | backbone.features.6.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (240,) () (240,) (240,) (240,) |
| backbone.features.6.block.1.0.weight | backbone.features.6.block.1.0.weight | (240, 1, 5, 5) |
| backbone.features.6.block.1.1.* | backbone.features.6.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (240,) () (240,) (240,) (240,) |
| backbone.features.6.block.2.fc1.* | backbone.features.6.block.2.fc1.{bias,weight} | (64,) (64,240,1,1) |
| backbone.features.6.block.2.fc2.* | backbone.features.6.block.2.fc2.{bias,weight} | (240,) (240,64,1,1) |
| backbone.features.6.block.3.0.weight | backbone.features.6.block.3.0.weight | (40, 240, 1, 1) |
| backbone.features.6.block.3.1.* | backbone.features.6.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (40,) () (40,) (40,) (40,) |
| backbone.features.7.block.0.0.weight | backbone.features.7.block.0.0.weight | (120, 40, 1, 1) |
| backbone.features.7.block.0.1.* | backbone.features.7.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (120,) () (120,) (120,) (120,) |
| backbone.features.7.block.1.0.weight | backbone.features.7.block.1.0.weight | (120, 1, 5, 5) |
| backbone.features.7.block.1.1.* | backbone.features.7.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (120,) () (120,) (120,) (120,) |
| backbone.features.7.block.2.fc1.* | backbone.features.7.block.2.fc1.{bias,weight} | (32,) (32,120,1,1) |
| backbone.features.7.block.2.fc2.* | backbone.features.7.block.2.fc2.{bias,weight} | (120,) (120,32,1,1) |
| backbone.features.7.block.3.0.weight | backbone.features.7.block.3.0.weight | (48, 120, 1, 1) |
| backbone.features.7.block.3.1.* | backbone.features.7.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (48,) () (48,) (48,) (48,) |
| backbone.features.8.block.0.0.weight | backbone.features.8.block.0.0.weight | (144, 48, 1, 1) |
| backbone.features.8.block.0.1.* | backbone.features.8.block.0.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (144,) () (144,) (144,) (144,) |
| backbone.features.8.block.1.0.weight | backbone.features.8.block.1.0.weight | (144, 1, 5, 5) |
| backbone.features.8.block.1.1.* | backbone.features.8.block.1.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (144,) () (144,) (144,) (144,) |
| backbone.features.8.block.2.fc1.* | backbone.features.8.block.2.fc1.{bias,weight} | (40,) (40,144,1,1) |
| backbone.features.8.block.2.fc2.* | backbone.features.8.block.2.fc2.{bias,weight} | (144,) (144,40,1,1) |
| backbone.features.8.block.3.0.weight | backbone.features.8.block.3.0.weight | (48, 144, 1, 1) |
| backbone.features.8.block.3.1.* | backbone.features.8.block.3.1.{bias,num_batches_tracked,running_mean,running_var,weight} | (48,) () (48,) (48,) (48,) |
| backbone.features.9.block.0.0.weight | backbone.features.9.block.0.0.weight | (288, 48, 1, 1) |
I get it, but I don’t what print this out, how to disable it?
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Disable Tensorflow debugging information - python
You can disable all debugging logs using os.environ : import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf. Tested on tf 0.12 and...
Read more >wandb — PyTorch Lightning 1.8.5.post0 documentation
Log using Weights and Biases. Installation and set-up. Install with pip: pip install wandb. Create a WandbLogger instance: from pytorch_lightning.loggers ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree it should be disabled by default, and in fact it was disabled by default before 0ad20f13e23f2f4454be6196c1cd38e2171b294c.
I no longer work on this project, but if anyone wants to fix this, the correct thing to do is to revert https://github.com/facebookresearch/detectron2/commit/0ad20f13e23f2f4454be6196c1cd38e2171b294c and at the same time ensure the MAE checkpoint like https://github.com/facebookresearch/detectron2/blob/main/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_b_100ep.py#L18 can load correctly.
The MAE checkpoint does require
matching_heuristics=True
, so to make it work, one way is to set the path todetectron2://ImageNetPretrained/MAE/mae_pretrain_vit_base.pth?matching_heuristics=True
and then handle the suffix inDetectionCheckpointer.load
.Another way is to add
matching_heuristics=True
into the checkpoint file itself – this approach is used for other pretrained backbones in detectron2. However that requires changing the checkpoint file to diverge from https://github.com/facebookresearch/mae#fine-tuning-with-pre-trained-checkpoints, so this approach is a bit concerning.