forked from SCP-173-cool/match_rcnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
33 lines (24 loc) · 895 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 21 21:15:50 2019
@author: loktarxiao
"""
from lib.config import Config
from lib import model as modellib
class BalloonConfig(Config):
"""Configuration for training on the toy dataset.
Derives from the base Config class and overrides some values.
"""
# Give the configuration a recognizable name
NAME = "balloon"
# We use a GPU with 12GB memory, which can fit two images.
# Adjust down if you use a smaller GPU.
IMAGES_PER_GPU = 2
# Number of classes (including background)
NUM_CLASSES = 1 + 1 # Background + balloon
# Number of training steps per epoch
STEPS_PER_EPOCH = 100
# Skip detections with < 90% confidence
DETECTION_MIN_CONFIDENCE = 0.9
config = BalloonConfig()
model = modellib.MaskRCNN(mode="training", config=config, model_dir="./logs/")