↓ 10 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
ram/archs/swinir_arch.py:17
↓ 7 callersFunctionreorder_imageReorder images to 'HWC' order. If the input_order is (h, w), return (h, w, 1); If the input_order is (c, h, w), return (h, w, c); If the
ram/metrics/metric_util.py:6
↓ 5 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
ram/archs/AdaSAM_arch.py:28
↓ 3 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
ram/archs/swinir_arch.py:35
↓ 2 callersMethod__init__(self, optimizer, milestones, gamma=0.1, restarts=(0, ), restart_weights=(1, ), last_epoch=-1)
ram/models/lr_scheduler.py:19
↓ 2 callersFunctionfilter2DPyTorch version of cv2.filter2D Args: img (Tensor): (b, c, h, w) kernel (Tensor): (b, k, k)
ram/utils/img_process_util.py:7