Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -5,11 +5,9 @@ import matplotlib.pyplot # for colormap
|
|
5 |
import matplotlib.colors # for color conversion
|
6 |
import huggingface_hub
|
7 |
|
|
|
8 |
model1 = huggingface_hub.from_pretrained_keras("cmudrc/microstructure-colorization")
|
9 |
|
10 |
-
#Loading the weights in the architecture (The file should be stored in the same directory as the code)
|
11 |
-
# model1.load_weights('modelV13_500trained_1.h5')
|
12 |
-
|
13 |
# Get the color map by name:
|
14 |
cm = matplotlib.pyplot.get_cmap('RdBu')
|
15 |
|
|
|
5 |
import matplotlib.colors # for color conversion
|
6 |
import huggingface_hub
|
7 |
|
8 |
+
# Loadin the model
|
9 |
model1 = huggingface_hub.from_pretrained_keras("cmudrc/microstructure-colorization")
|
10 |
|
|
|
|
|
|
|
11 |
# Get the color map by name:
|
12 |
cm = matplotlib.pyplot.get_cmap('RdBu')
|
13 |
|