This commit is contained in:
zhouchengrong
2024-03-11 11:00:43 +08:00
parent 117e569730
commit 3ccaa0451b

View File

@@ -34,6 +34,7 @@ def imnormalize(img, mean, std, to_rgb=True):
cv2.multiply(img, stdinv, img) # inplace
return img
def load_image(img_path):
if 'http' in img_path:
file = requests.get(img_path)