mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 14:15:01 +00:00
dlr: make size fo prediction graph actually sensible
This commit is contained in:
parent
8d932757b5
commit
d24381babb
1 changed files with 4 additions and 1 deletions
|
@ -4,10 +4,12 @@
|
|||
|
||||
from datetime import datetime
|
||||
from loguru import logger
|
||||
|
||||
from lib.ai.helpers.summarywriter import summarywriter
|
||||
from lib.ai.components.CallbackCustomModelCheckpoint import CallbackCustomModelCheckpoint
|
||||
|
||||
import os
|
||||
import math
|
||||
import cv2
|
||||
import numpy as np
|
||||
from glob import glob
|
||||
|
@ -293,8 +295,9 @@ def get_overlay(image, coloured_mask):
|
|||
|
||||
|
||||
def plot_samples_matplotlib(filepath, display_list):
|
||||
plt.figure(figsize=(16, 8))
|
||||
for i in range(len(display_list)):
|
||||
plt.subplot(1, len(display_list), i+1)
|
||||
plt.subplot(2, math.ceil(len(display_list) / 2), i+1)
|
||||
if display_list[i].shape[-1] == 3:
|
||||
plt.imshow(tf.keras.preprocessing.image.array_to_img(display_list[i]))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue