HRNet-Semantic-Segmentation icon indicating copy to clipboard operation
HRNet-Semantic-Segmentation copied to clipboard

Feature request: Add HRNet-Semantic-Segmentation to the Pytorch-hub

Open AlexeyAB opened this issue 3 years ago • 3 comments

Feature request: Add HRNet-Semantic-Segmentation models to the Pytorch-hub

This will be a step prior to adding HRNet to the common Pytorch models: https://github.com/pytorch/vision/issues/987

The simplest way is to add hubconf.py file to GitHub repository, like: https://github.com/WongKinYiu/PyTorch_YOLOv4/blob/u5_preview/hubconf.py So we will be able to use HRNet models by using just command like: https://pytorch.org/docs/stable/hub.html#torch.hub.help

model= torch.hub.load('WongKinYiu/PyTorch_YOLOv4:u5_preview', 'yolov4_pacsp_s', pretrained=True)
output = model(img)  # output is length 3 list

for layer in output: 
    print(layer.shape)

AlexeyAB avatar Aug 01 '20 15:08 AlexeyAB

@AlexeyAB Thanks for informing us of adding our models to the Pytorch-hub and the Pytorch/vision repo.

We will follow the mentioned example and add a hubconf.py soon.

PkuRainBow avatar Aug 02 '20 07:08 PkuRainBow

This would certainly be a useful feature to compare HRNet to different architectures is there a PR related to this?

AOS55 avatar Mar 31 '21 15:03 AOS55

+1 @PkuRainBow

vedal avatar May 05 '21 20:05 vedal