in video_processing/modules/aesthetic_laion.py [0:0]
4 lines of code
1 McCabe index (conditional complexity)
def load_aesthetic_laion(model_path, device, dtype):
global MODEL
dtype = getattr(torch, dtype)
MODEL = AestheticScorer(dtype=dtype, path=model_path).to(device)