Use plasma colormap for v44 inference images

Automatica_1_v2
Sergey Revyakin 6 hours ago
parent 8ed0974445
commit cf04e04cee

@ -244,7 +244,7 @@ def post_func_ensemble(src="", model_type="", prediction="", model_id=0, ind_inf
if isinstance(data, (list, tuple)) and len(data) >= 2: if isinstance(data, (list, tuple)) and len(data) >= 2:
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.imshow(_as_training_colormap_image(data[0]), cmap="viridis") ax.imshow(_as_training_colormap_image(data[0]), cmap="plasma")
plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_real_" + str(model_id) + "_" + model_type + ".png") plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_real_" + str(model_id) + "_" + model_type + ".png")
plt.clf() plt.clf()
plt.cla() plt.cla()
@ -253,7 +253,7 @@ def post_func_ensemble(src="", model_type="", prediction="", model_id=0, ind_inf
gc.collect() gc.collect()
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.imshow(_as_training_colormap_image(data[1]), cmap="viridis") ax.imshow(_as_training_colormap_image(data[1]), cmap="plasma")
plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_mod_" + str(model_id) + "_" + model_type + ".png") plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_mod_" + str(model_id) + "_" + model_type + ".png")
plt.clf() plt.clf()
plt.cla() plt.cla()

@ -244,7 +244,7 @@ def post_func_ensemble(src="", model_type="", prediction="", model_id=0, ind_inf
if isinstance(data, (list, tuple)) and len(data) >= 2: if isinstance(data, (list, tuple)) and len(data) >= 2:
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.imshow(_as_training_colormap_image(data[0]), cmap="viridis") ax.imshow(_as_training_colormap_image(data[0]), cmap="plasma")
plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_real_" + str(model_id) + "_" + model_type + ".png") plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_real_" + str(model_id) + "_" + model_type + ".png")
plt.clf() plt.clf()
plt.cla() plt.cla()
@ -253,7 +253,7 @@ def post_func_ensemble(src="", model_type="", prediction="", model_id=0, ind_inf
gc.collect() gc.collect()
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.imshow(_as_training_colormap_image(data[1]), cmap="viridis") ax.imshow(_as_training_colormap_image(data[1]), cmap="plasma")
plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_mod_" + str(model_id) + "_" + model_type + ".png") plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_mod_" + str(model_id) + "_" + model_type + ".png")
plt.clf() plt.clf()
plt.cla() plt.cla()

@ -216,7 +216,7 @@ def post_func_ensemble(src="", model_type="", prediction="", model_id=0, ind_inf
if isinstance(data, (list, tuple)) and len(data) >= 2: if isinstance(data, (list, tuple)) and len(data) >= 2:
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.imshow(_as_training_colormap_image(data[0]), cmap="viridis") ax.imshow(_as_training_colormap_image(data[0]), cmap="plasma")
plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_real_" + str(model_id) + "_" + model_type + ".png") plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_real_" + str(model_id) + "_" + model_type + ".png")
plt.clf() plt.clf()
plt.cla() plt.cla()
@ -225,7 +225,7 @@ def post_func_ensemble(src="", model_type="", prediction="", model_id=0, ind_inf
gc.collect() gc.collect()
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.imshow(_as_training_colormap_image(data[1]), cmap="viridis") ax.imshow(_as_training_colormap_image(data[1]), cmap="plasma")
plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_mod_" + str(model_id) + "_" + model_type + ".png") plt.savefig(src + "_inference_" + str(ind_inference) + "_" + prediction + "_mod_" + str(model_id) + "_" + model_type + ".png")
plt.clf() plt.clf()
plt.cla() plt.cla()

Loading…
Cancel
Save