SalamanderJoe commited on
Commit
4778f00
·
verified ·
1 Parent(s): 1779fe4

Upload 3 files

Browse files
Files changed (3) hide show
  1. faster_rcnn.yaml +59 -0
  2. rcnn_bet365.pth +3 -0
  3. resnetv2_rgb_new.pth.tar +3 -0
faster_rcnn.yaml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ MODEL:
3
+ META_ARCHITECTURE: "GeneralizedRCNN"
4
+ WEIGHTS: "https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_50_FPN_3x/137849458/model_final_280758.pkl"
5
+ MASK_ON: False # Not doing segmentation
6
+ RESNETS:
7
+ OUT_FEATURES: ["res2", "res3", "res4", "res5"]
8
+ DEPTH: 50 # ResNet50
9
+ FPN:
10
+ IN_FEATURES: ["res2", "res3", "res4", "res5"]
11
+ ANCHOR_GENERATOR:
12
+ SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map
13
+ ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps)
14
+ RPN:
15
+ IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"]
16
+ PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level
17
+ PRE_NMS_TOPK_TEST: 1000 # Per FPN level
18
+ # Detectron1 uses 2000 proposals per-batch,
19
+ # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue)
20
+ # which is approximately 1000 proposals per-image since the default batch size for FPN is 2.
21
+ POST_NMS_TOPK_TRAIN: 1000
22
+ POST_NMS_TOPK_TEST: 1000
23
+ ROI_HEADS:
24
+ NAME: "StandardROIHeads"
25
+ IN_FEATURES: ["p2", "p3", "p4", "p5"]
26
+ NUM_CLASSES: 2 # Change to suit own task
27
+ # Can reduce this for lower memory/faster training; Default 512
28
+ BATCH_SIZE_PER_IMAGE: 512
29
+ ROI_BOX_HEAD:
30
+ NAME: "FastRCNNConvFCHead"
31
+ NUM_FC: 2
32
+ POOLER_RESOLUTION: 7
33
+ ROI_MASK_HEAD:
34
+ NAME: "MaskRCNNConvUpsampleHead"
35
+ NUM_CONV: 4
36
+ POOLER_RESOLUTION: 14
37
+ BACKBONE:
38
+ NAME: "build_resnet_fpn_backbone"
39
+ FREEZE_AT: 2 # Default 2
40
+ DATASETS:
41
+ TRAIN: ("benign_train",)
42
+ TEST: ("benign_test",)
43
+ DATALOADER:
44
+ NUM_WORKERS: 0
45
+ SOLVER:
46
+ IMS_PER_BATCH: 12 # Batch size; Default 16
47
+ BASE_LR: 0.001
48
+ # (2/3, 8/9)
49
+ STEPS: (17000, 22000) # The iteration number to decrease learning rate by GAMMA.
50
+ MAX_ITER: 25000 # Number of training iterations
51
+ CHECKPOINT_PERIOD: 2500 # Saves checkpoint every number of steps
52
+ INPUT:
53
+ MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) # Image input sizes
54
+ TEST:
55
+ # The period (in terms of steps) to evaluate the model during training.
56
+ # Set to 0 to disable.
57
+ EVAL_PERIOD: 2500
58
+ OUTPUT_DIR: "./output" # Specify output directory
59
+ VERSION: 2
rcnn_bet365.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cf2c3859c519e128e909e18afd8edb673ca306a9ddbb6d52fc3eed5041901c4
3
+ size 330022096
resnetv2_rgb_new.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:358040750456f62175e33df2d630286769f2e4ca9d08d356dbafa1ed782010ec
3
+ size 192603493