add file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user