isLinXu commited on
Commit
ff12644
·
1 Parent(s): 0141f34

update app

Browse files
Files changed (1) hide show
  1. app.py +117 -13
app.py CHANGED
@@ -241,7 +241,7 @@ detectron2_model_list = {
241
  # Cityscapes
242
  "Cityscapes/mask_rcnn_R_50_FPN":{
243
  "config_file": "configs/Cityscapes/mask_rcnn_R_50_FPN.yaml",
244
- "ckpts": "detectron2://Cityscapes/"
245
  },
246
  # COCO-Detection
247
  "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x":{
@@ -250,44 +250,148 @@ detectron2_model_list = {
250
  },
251
  "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x":{
252
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml",
253
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
254
  },
255
  "COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x":{
256
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x.yaml",
257
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
258
  },
259
  "COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x": {
260
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml",
261
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
262
  },
263
  "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x": {
264
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.yaml",
265
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
266
  },
267
  "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x": {
268
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml",
269
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
270
  },
271
  "COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x": {
272
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x.yaml",
273
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
274
  },
275
  "COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x": {
276
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x.yaml",
277
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
278
  },
279
  "COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x": {
280
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml",
281
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
282
  },
283
  "COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x": {
284
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml",
285
- "ckpts": "detectron2://COCO-InstanceSegmentation/"
286
  },
287
  # COCO-Detection
288
- "COCO-Detection/mask_rcnn_X_101_32x8d_FPN_3x": {
289
- "config_file": "configs/COCO-Detection/mask_rcnn_X_101_32x8d_FPN_3x.yaml",
290
- "ckpts": "detectron2://COCO-Detection/"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  },
292
  }
293
 
 
241
  # Cityscapes
242
  "Cityscapes/mask_rcnn_R_50_FPN":{
243
  "config_file": "configs/Cityscapes/mask_rcnn_R_50_FPN.yaml",
244
+ "ckpts": "detectron2://Cityscapes/mask_rcnn_R_50_FPN/142423278/model_final_af9cf5.pkl"
245
  },
246
  # COCO-Detection
247
  "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x":{
 
250
  },
251
  "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x":{
252
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml",
253
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x/137260431/model_final_a54504.pkl"
254
  },
255
  "COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x":{
256
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x.yaml",
257
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x/137260150/model_final_4f86c3.pkl"
258
  },
259
  "COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x": {
260
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml",
261
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x/137849551/model_final_84107b.pkl"
262
  },
263
  "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x": {
264
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.yaml",
265
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x/137259246/model_final_9243eb.pkl"
266
  },
267
  "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x": {
268
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml",
269
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x/137849525/model_final_4ce675.pkl"
270
  },
271
  "COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x": {
272
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x.yaml",
273
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x/138363239/model_final_a2914c.pkl"
274
  },
275
  "COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x": {
276
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x.yaml",
277
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x/138363294/model_final_0464b7.pkl"
278
  },
279
  "COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x": {
280
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml",
281
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x/138205316/model_final_a3ec72.pkl"
282
  },
283
  "COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x": {
284
  "config_file": "configs/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml",
285
+ "ckpts": "detectron2://COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x/139653917/model_final_2d9806.pkl"
286
  },
287
  # COCO-Detection
288
+ "COCO-Detection/fast_rcnn_R_50_FPN_1x": {
289
+ "config_file": "configs/COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml",
290
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_50_FPN_1x/137257794/model_final_b275ba.pkl"
291
+ },
292
+ "COCO-Detection/faster_rcnn_R_50_C4_1x": {
293
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_50_C4_1x.yaml",
294
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_50_C4_1x/137257644/model_final_721ade.pkl"
295
+ },
296
+ "COCO-Detection/faster_rcnn_R_50_DC5_1x": {
297
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_50_DC5_1x.yaml",
298
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_50_DC5_1x/137847829/model_final_51d356.pkl"
299
+ },
300
+ "COCO-Detection/faster_rcnn_R_50_DC5_3x": {
301
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_50_DC5_3x.yaml",
302
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_50_DC5_3x/137849425/model_final_68d202.pkl"
303
+ },
304
+ "COCO-Detection/faster_rcnn_R_50_FPN_1x": {
305
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_50_FPN_1x.yaml",
306
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_50_FPN_1x/137257794/model_final_b275ba.pkl"
307
+ },
308
+ "COCO-Detection/faster_rcnn_R_101_C4_3x": {
309
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_101_C4_3x.yaml",
310
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_101_C4_3x/138204752/model_final_298dad.pkl"
311
+ },
312
+ "COCO-Detection/faster_rcnn_R_101_DC5_3x": {
313
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_101_DC5_3x.yaml",
314
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_101_DC5_3x/138204841/model_final_3e0943.pkl"
315
+ },
316
+ "COCO-Detection/faster_rcnn_R_101_FPN_3x": {
317
+ "config_file": "configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml",
318
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_R_101_FPN_3x/137851257/model_final_f6e8b1.pkl"
319
+ },
320
+ "COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x": {
321
+ "config_file": "configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml",
322
+ "ckpts": "detectron2://COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x/139173657/model_final_68b088.pkl"
323
+ },
324
+ "COCO-Detection/retinanet_R_50_FPN_1x": {
325
+ "config_file": "configs/COCO-Detection/retinanet_R_50_FPN_1x.yaml",
326
+ "ckpts": "detectron2://COCO-Detection/retinanet_R_50_FPN_1x/190397773/model_final_bfca0b.pkl"
327
+ },
328
+ "COCO-Detection/retinanet_R_50_FPN_3x": {
329
+ "config_file": "configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml",
330
+ "ckpts": "detectron2://COCO-Detection/retinanet_R_50_FPN_3x/190397829/model_final_5bd44e.pkl"
331
+ },
332
+ "COCO-Detection/retinanet_R_101_FPN_3x": {
333
+ "config_file": "configs/COCO-Detection/retinanet_R_101_FPN_3x.yaml",
334
+ "ckpts": "detectron2://COCO-Detection/retinanet_R_50_FPN_3x/190397829/model_final_5bd44e.pkl"
335
+ },
336
+ "COCO-Detection/rpn_R_50_C4_1x": {
337
+ "config_file": "configs/COCO-Detection/rpn_R_50_C4_1x.yaml",
338
+ "ckpts": "detectron2://COCO-Detection/rpn_R_50_C4_1x/137258005/model_final_450694.pkl"
339
+ },
340
+ "COCO-Detection/rpn_R_50_FPN_1x": {
341
+ "config_file": "configs/COCO-Detection/rpn_R_50_FPN_1x.yaml",
342
+ "ckpts": "detectron2://COCO-Detection/rpn_R_50_FPN_1x/137258492/model_final_02ce48.pkl"
343
+ },
344
+ # COCO-Keypoints
345
+ "COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x": {
346
+ "config_file": "configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.yaml",
347
+ "ckpts": "detectron2://COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x/137261548/model_final_04e291.pkl"
348
+ },
349
+ "COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x": {
350
+ "config_file": "configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml",
351
+ "ckpts": "detectron2://COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x/137849621/model_final_a6e10b.pkl"
352
+ },
353
+ "COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x": {
354
+ "config_file": "configs/COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x.yaml",
355
+ "ckpts": "detectron2://COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x/138363331/model_final_997cc7.pkl"
356
+ },
357
+ "COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x": {
358
+ "config_file": "configs/COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x.yaml",
359
+ "ckpts": "detectron2://COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x/139686956/model_final_5ad38f.pkl"
360
+ },
361
+ # COCO-PanopticSegmentation
362
+ "COCO-PanopticSegmentation/panoptic_fpn_R_50_1x": {
363
+ "config_file": "configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml",
364
+ "ckpts": "detectron2://COCO-PanopticSegmentation/panoptic_fpn_R_50_1x/139514544/model_final_dbfeb4.pkl"
365
+ },
366
+ "COCO-PanopticSegmentation/panoptic_fpn_R_50_3x": {
367
+ "config_file": "configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml",
368
+ "ckpts": "detectron2://COCO-PanopticSegmentation/panoptic_fpn_R_50_3x/139514569/model_final_c10459.pkl"
369
+ },
370
+ "COCO-PanopticSegmentation/panoptic_fpn_R_101_3x": {
371
+ "config_file": "configs/COCO-PanopticSegmentation/panoptic_fpn_R_101_3x.yaml",
372
+ "ckpts": "detectron2://COCO-PanopticSegmentation/panoptic_fpn_R_101_3x/139514519/model_final_cafdb1.pkl"
373
+ },
374
+ # LVISv0.5-InstanceSegmentation
375
+ "LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x": {
376
+ "config_file": "configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml",
377
+ "ckpts": "detectron2://LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x/144219072/model_final_571f7c.pkl"
378
+ },
379
+ "LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x": {
380
+ "config_file": "configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml",
381
+ "ckpts": "detectron2://LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x/144219035/model_final_824ab5.pkl"
382
+ },
383
+ "LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x": {
384
+ "config_file": "configs/LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml",
385
+ "ckpts": "detectron2://LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x/144219108/model_final_5e3439.pkl"
386
+ },
387
+ # PascalVOC-Detection
388
+ "PascalVOC-Detection/faster_rcnn_R_50_C4": {
389
+ "config_file": "configs/PascalVOC-Detection/faster_rcnn_R_50_C4.yaml",
390
+ "ckpts": "detectron2://PascalVOC-Detection/faster_rcnn_R_50_C4/142202221/model_final_b1acc2.pkl"
391
+ },
392
+ "PascalVOC-Detection/faster_rcnn_R_50_FPN": {
393
+ "config_file": "configs/PascalVOC-Detection/faster_rcnn_R_50_FPN.yaml",
394
+ "ckpts": "detectron2://Cityscapes/mask_rcnn_R_50_FPN/142423278/model_final_af9cf5.pkl"
395
  },
396
  }
397