Spaces:
Running
Running
Update src/utils.py
Browse files- src/utils.py +6 -3
src/utils.py
CHANGED
|
@@ -30,9 +30,12 @@ def load_colorization_model():
|
|
| 30 |
"""
|
| 31 |
# Paths to model architecture, weights, and cluster centers
|
| 32 |
base_path = os.path.join(os.path.dirname(__file__), "models")
|
| 33 |
-
proto_file = "models/colorization_deploy_v2.prototxt"
|
| 34 |
-
model_file = "models/colorization_release_v2.caffemodel"
|
| 35 |
-
cluster_file = "models/pts_in_hull.npy"
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
# Load the model using OpenCV DNN module
|
|
|
|
| 30 |
"""
|
| 31 |
# Paths to model architecture, weights, and cluster centers
|
| 32 |
base_path = os.path.join(os.path.dirname(__file__), "models")
|
| 33 |
+
# proto_file = "models/colorization_deploy_v2.prototxt"
|
| 34 |
+
# model_file = "models/colorization_release_v2.caffemodel"
|
| 35 |
+
# cluster_file = "models/pts_in_hull.npy"
|
| 36 |
+
proto_file = os.path.join(base_path, "colorization_deploy_v2.prototxt")
|
| 37 |
+
model_file = os.path.join(base_path, "colorization_release_v2.caffemodel")
|
| 38 |
+
cluster_file = os.path.join(base_path, "pts_in_hull.npy")
|
| 39 |
|
| 40 |
|
| 41 |
# Load the model using OpenCV DNN module
|