Spaces:
Running
Running
Update imagePreprocess.py
Browse files- imagePreprocess.py +2 -0
imagePreprocess.py
CHANGED
|
@@ -5,8 +5,10 @@ import cv2
|
|
| 5 |
import numpy as np
|
| 6 |
import tensorflow as tf
|
| 7 |
from tensorflow.keras.applications.resnet50 import preprocess_input
|
|
|
|
| 8 |
import torch
|
| 9 |
import clip
|
|
|
|
| 10 |
|
| 11 |
BASE_DIR = "MAS-AI-0000/Authentica"
|
| 12 |
MODELS_DIR = os.path.join(BASE_DIR, "Lib/Models/Image")
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
import tensorflow as tf
|
| 7 |
from tensorflow.keras.applications.resnet50 import preprocess_input
|
| 8 |
+
from tensorflow.keras.models import load_model
|
| 9 |
import torch
|
| 10 |
import clip
|
| 11 |
+
from huggingface_hub import hf_hub_download
|
| 12 |
|
| 13 |
BASE_DIR = "MAS-AI-0000/Authentica"
|
| 14 |
MODELS_DIR = os.path.join(BASE_DIR, "Lib/Models/Image")
|