core icon indicating copy to clipboard operation
core copied to clipboard

resmgr download: allow specifying name independent of URL

Open bertsky opened this issue 3 years ago • 1 comments
trafficstars

ocrd resmgr download -n ocrd-detectron2-segment ...
ocrd resmgr list-installed -e ocrd-detectron2-segment
- All_X152.yaml @ data (https://layoutlm.blob.core.windows.net/tablebank/model_zoo/detection/All_X152/All_X152.yaml)
  Found at data on 2022-01-19 12:44:17.192397
- model_final_01ca85.pkl @ data (???)
  Found at data on 2022-01-20 23:29:42.287291
- model_final.pth @ data (https://layoutlm.blob.core.windows.net/tablebank/model_zoo/detection/All_X152/model_final.pth)
  Found at data on 2022-01-19 13:13:18.793976
- DLA_mask_rcnn_R_101_FPN_3x.yaml @ data (https://github.com/hpanwar08/detectron2/raw/master/configs/DLA_mask_rcnn_R_101_FPN_3x.yaml)
  Found at data on 2022-01-20 21:23:24.611257

This is not helpful. I would like to be able to set a name on the CLI, just as I can in the central resource_list.yml.

bertsky avatar Jan 20 '22 22:01 bertsky

Also, after I manually edited the config to have useful names, I still get a list that is not sorted by name:

- TableBank_X152.pth @ data (https://layoutlm.blob.core.windows.net/tablebank/model_zoo/detection/All_X152/model_final.pth)
  Found at data on 2022-01-19 13:13:18.793976
- PubLayNet_R_50_FPN_3x.pkl @ data (https://dl.fbaipublicfiles.com/detectron2/Misc/scratch_mask_rcnn_R_50_FPN_3x_gn/138602908/model_final_01ca85.pkl)
  Found at data on 2022-01-20 23:29:42.287291
- TableBank_X152.yaml @ data (https://layoutlm.blob.core.windows.net/tablebank/model_zoo/detection/All_X152/All_X152.yaml)
  Found at data on 2022-01-19 12:44:17.192397
- PubLayNet_R_101_FPN_3x.pkl @ data (https://dl.fbaipublicfiles.com/detectron2/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x/138205316/model_final_a3ec72.pkl)
  Found at data on 2022-01-20 23:50:12.278309
- PubLayNet_R_50_FPN_3x.yaml @ data (https://github.com/hpanwar08/detectron2/raw/master/configs/DLA_mask_rcnn_R_50_FPN_3x.yaml)
  Found at data on 2022-01-20 23:44:29.181502
- PubLayNet_R_101_FPN_3x.yaml @ data (https://github.com/hpanwar08/detectron2/raw/master/configs/DLA_mask_rcnn_R_101_FPN_3x.yaml)
  Found at data on 2022-01-20 21:23:24.611257
- PubLayNet_X_101_32x8d_FPN_3x.pkl @ data (https://dl.fbaipublicfiles.com/detectron2/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x/139653917/model_final_2d9806.pkl)
  Found at data on 2022-01-20 23:55:27.166808
- PubLayNet_X_101_32x8d_FPN_3x.yaml @ data (https://github.com/hpanwar08/detectron2/raw/master/configs/DLA_mask_rcnn_X_101_32x8d_FPN_3x.yaml)
  Found at data on 2022-01-20 23:56:06.363778

Could it be that resmgr sorts by filesystem?

bertsky avatar Jan 20 '22 23:01 bertsky