{"nwo":"ClementPinard\/Pytorch-Correlation-extension","sha":"3e8ce16124844cd7892ec965cf0ad18fdd8e6a02","path":"Correlation_Module\/spatial_correlation_sampler\/spatial_correlation_sampler.py","language":"python","identifier":"spatial_correlation_sample","parameters":"(input1,\n input2,\n kernel_size=1,\n patch_size=1,\n stride=1,\n padding=0,\n dilation=1,\n dilation_patch=1)","argument_list":"","return_statement":"return SpatialCorrelationSamplerFunction.apply(input1, input2,\n kernel_size, patch_size,\n stride, padding, dilation, dilation_patch)","docstring":"Apply spatial correlation sampling on from input1 to input2,\n\n Every parameter except input1 and input2 can be either single int\n or a pair of int. For more information about Spatial Correlation\n Sampling, see this page.\n https:\/\/lmb.informatik.uni-freiburg.de\/Publications\/2015\/DFIB15\/\n\n Args:\n input1 : The first parameter.\n input2 : The second parameter.\n kernel_size : total size of your correlation kernel, in pixels\n patch_size : total size of your patch, determining how many\n different shifts will be applied\n stride : stride of the spatial sampler, will modify output\n height and width\n padding : padding applied to input1 and input2 before applying\n the correlation sampling, will modify output height and width\n dilation_patch : step for every shift in patch\n\n Returns:\n Tensor: Result of correlation sampling","docstring_summary":"Apply spatial correlation sampling on from input1 to input2,","docstring_tokens":["Apply","spatial","correlation","sampling","on","from","input1","to","input2"],"function":"def spatial_correlation_sample(input1,\n input2,\n kernel_size=1,\n patch_size=1,\n stride=1,\n padding=0,\n dilation=1,\n dilation_patch=1):\n \"\"\"Apply spatial correlation sampling on from input1 to input2,\n\n Every parameter except input1 and input2 can be either single int\n or a pair of int. For more information about Spatial Correlation\n Sampling, see this page.\n https:\/\/lmb.informatik.uni-freiburg.de\/Publications\/2015\/DFIB15\/\n\n Args:\n input1 : The first parameter.\n input2 : The second parameter.\n kernel_size : total size of your correlation kernel, in pixels\n patch_size : total size of your patch, determining how many\n different shifts will be applied\n stride : stride of the spatial sampler, will modify output\n height and width\n padding : padding applied to input1 and input2 before applying\n the correlation sampling, will modify output height and width\n dilation_patch : step for every shift in patch\n\n Returns:\n Tensor: Result of correlation sampling\n\n \"\"\"\n return SpatialCorrelationSamplerFunction.apply(input1, input2,\n kernel_size, patch_size,\n stride, padding, dilation, dilation_patch)","function_tokens":["def","spatial_correlation_sample","(","input1",",","input2",",","kernel_size","=","1",",","patch_size","=","1",",","stride","=","1",",","padding","=","0",",","dilation","=","1",",","dilation_patch","=","1",")",":","return","SpatialCorrelationSamplerFunction",".","apply","(","input1",",","input2",",","kernel_size",",","patch_size",",","stride",",","padding",",","dilation",",","dilation_patch",")"],"url":"https:\/\/github.com\/ClementPinard\/Pytorch-Correlation-extension\/blob\/3e8ce16124844cd7892ec965cf0ad18fdd8e6a02\/Correlation_Module\/spatial_correlation_sampler\/spatial_correlation_sampler.py#L9-L42"} |