Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hub | |
from hub.schema import Image | |
from hub.schema import Tensor | |
from hub.schema import Mask | |
from hub.schema import Segmentation | |
# include your user anme and a name for your dataset | |
tag = "rasha/landCoverNet_Omdena_Sample" | |
ds = {} | |
# Define youe dataset object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inputs_dir = '/content/landcovernet/inputs' # The directory where our input resides | |
targets_dir = '/content/landcovernet/targets' # The directory where our target resides | |
# First stack all the bands togather | |
def process_tiffs(inputs_dir, target_dir): | |
data = [] | |
sub_dir_list = [] | |
images_target = {} | |
stacked_imgs = [] | |
list_bands = [] |
OlderNewer