mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-07 06:59:58 +02:00
code formatting with black; typos
This commit is contained in:
parent
39aa88669b
commit
666a62622e
8 changed files with 741 additions and 768 deletions
|
@ -9,25 +9,21 @@ from utils import *
|
|||
from metrics import *
|
||||
|
||||
|
||||
|
||||
|
||||
def configuration():
|
||||
gpu_options = tf.compat.v1.GPUOptions(allow_growth=True)
|
||||
session = tf.compat.v1.Session(config=tf.compat.v1.ConfigProto(gpu_options=gpu_options))
|
||||
|
||||
|
||||
if __name__=='__main__':
|
||||
if __name__ == '__main__':
|
||||
n_classes = 2
|
||||
input_height = 224
|
||||
input_width = 448
|
||||
weight_decay = 1e-6
|
||||
pretraining = False
|
||||
dir_of_weights = 'model_bin_sbb_ens.h5'
|
||||
|
||||
#configuration()
|
||||
|
||||
model = resnet50_unet(n_classes, input_height, input_width,weight_decay,pretraining)
|
||||
|
||||
# configuration()
|
||||
|
||||
model = resnet50_unet(n_classes, input_height, input_width, weight_decay, pretraining)
|
||||
model.load_weights(dir_of_weights)
|
||||
model.save('./name_in_another_python_version.h5')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue