Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
label = single_patch_mask

# Now replace RGB to integer values to be used as labels.
#Find pixels with combination of RGB for the above defined arrays...
#if matches then replace all values in that pixel with a specific integer
# Find pixels with combination of RGB for the above defined arrays...
# if matches then replace all values in that pixel with a specific integer
def rgb_to_2D_label(label):
"""
Suply our labale masks as input in RGB format.
Expand Down Expand Up @@ -207,7 +207,7 @@ def rgb_to_2D_label(label):

print("Unique labels in label dataset are: ", np.unique(labels))

#Another Sanity check, view few mages
#Another Sanity check, view few images
import random
import numpy as np
image_number = random.randint(0, len(image_dataset))
Expand Down Expand Up @@ -287,7 +287,7 @@ def get_model():

#model.save('models/satellite_standard_unet_100epochs_7May2021.hdf5')
############################################################
#TRY ANOTHE MODEL - WITH PRETRINED WEIGHTS
#TRY ANOTHER MODEL - WITH PRETRAINED WEIGHTS
#Resnet backbone
BACKBONE = 'resnet34'
preprocess_input = sm.get_preprocessing(BACKBONE)
Expand Down