개정판 b9e6a7c5
issue #1366: test
Change-Id: I8080878a4302e61f106e36844635cf8c9a8de9dc
DTI_PID/WebServer/CRAFT_pytorch_master/text_craft.py | ||
---|---|---|
202 | 202 |
parser.add_argument('--text_threshold', default=0.7, type=float, help='text confidence threshold') |
203 | 203 |
parser.add_argument('--low_text', default=0.4, type=float, help='text low-bound score') |
204 | 204 |
parser.add_argument('--link_threshold', default=0.4, type=float, help='link confidence threshold') |
205 |
parser.add_argument('--cuda', default=True, type=str2bool, help='Use cuda for inference')
|
|
205 |
parser.add_argument('--cuda', default=False, type=str2bool, help='Use cuda for inference')
|
|
206 | 206 |
parser.add_argument('--canvas_size', default=1000, type=int, help='image size for inference') |
207 | 207 |
parser.add_argument('--mag_ratio', default=1, type=float, help='image magnification ratio') |
208 | 208 |
parser.add_argument('--poly', default=False, action='store_true', help='enable polygon type') |
DTI_PID/WebServer/app.py | ||
---|---|---|
78 | 78 |
return jsonify({'text_box_list': boxes_list}) |
79 | 79 |
|
80 | 80 |
if __name__ == '__main__': |
81 |
app.run(debug=False) |
|
81 |
app.run(debug=False) |
|
82 |
#app.run(host='0,0,0,0') |
DTI_PID/WebServer/service_streamer_master/service_streamer/service_streamer.py | ||
---|---|---|
17 | 17 |
|
18 | 18 |
TIMEOUT = 1 |
19 | 19 |
TIME_SLEEP = 0.001 |
20 |
WORKER_TIMEOUT = 200 |
|
20 |
WORKER_TIMEOUT = 2000
|
|
21 | 21 |
logger = logging.getLogger(__name__) |
22 | 22 |
logger.setLevel("INFO") |
23 | 23 |
|
내보내기 Unified diff