用kafka接收消息
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hrnet.py 942B

2 years ago
1234567891011121314151617181920212223242526272829
  1. """High-Resolution Representations for Semantic Segmentation"""
  2. import torch
  3. import torch.nn as nn
  4. import torch.nn.functional as F
  5. class HRNet(nn.Module):
  6. """HRNet
  7. Parameters
  8. ----------
  9. nclass : int
  10. Number of categories for the training dataset.
  11. backbone : string
  12. Pre-trained dilated backbone network type (default:'resnet50'; 'resnet50',
  13. 'resnet101' or 'resnet152').
  14. norm_layer : object
  15. Normalization layer used in backbone network (default: :class:`nn.BatchNorm`;
  16. for Synchronized Cross-GPU BachNormalization).
  17. aux : bool
  18. Auxiliary loss.
  19. Reference:
  20. Ke Sun. "High-Resolution Representations for Labeling Pixels and Regions."
  21. arXiv preprint arXiv:1904.04514 (2019).
  22. """
  23. def __init__(self, nclass, backbone='', aux=False, pretrained_base=False, **kwargs):
  24. super(HRNet, self).__init__()
  25. def forward(self, x):
  26. pass