a
    áñhŒ  ã                   @   sD   d dl mZ ddlmZ dgZG dd„ deƒZG dd„ dejƒZdS )	é    )Únné   )Ú_SimpleSegmentationModelÚFCNc                   @   s   e Zd ZdZdS )r   aS  
    Implements a Fully-Convolutional Network for semantic segmentation.

    Arguments:
        backbone (nn.Module): the network used to compute the features for the model.
            The backbone should return an OrderedDict[Tensor], with the key being
            "out" for the last feature map used, and "aux" if an auxiliary classifier
            is used.
        classifier (nn.Module): module that takes the "out" element returned from
            the backbone and returns a dense prediction.
        aux_classifier (nn.Module, optional): auxiliary classifier used during training
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r
   r
   úc/home/yuhw/wc/uboone-dl-vtx/venv/lib/python3.9/site-packages/torchvision/models/segmentation/fcn.pyr   	   s   c                       s   e Zd Z‡ fdd„Z‡  ZS )ÚFCNHeadc              	      sT   |d }t j||dddd�t  |¡t  ¡ t  d¡t  ||d¡g}tt| ƒj|Ž  d S )Né   é   r   F)ÚpaddingZbiasgš™™™™™¹?)r   ZConv2dZBatchNorm2dZReLUZDropoutÚsuperr   Ú__init__)ÚselfZin_channelsZchannelsZinter_channelsZlayers©Ú	__class__r
   r   r      s    ûzFCNHead.__init__)r   r   r   r   Ú__classcell__r
   r
   r   r   r      s   r   N)Ztorchr   Ú_utilsr   Ú__all__r   Z
Sequentialr   r
   r
   r
   r   Ú<module>   s   