MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

utils/general_util.py:527–530  ·  view source on GitHub ↗
(self, crop_size,top_ratio, left_ratio)

Source from the content-addressed store, hash-verified

525
526class CustomCrop:
527 def __init__(self, crop_size,top_ratio, left_ratio):
528 self.top_ratio = top_ratio
529 self.left_ratio = left_ratio
530 self.crop_size = crop_size
531
532 def __call__(self, tensor):
533 _, h, w = tensor.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected