Skip to content

Instantly share code, notes, and snippets.

View rasha-salim's full-sized avatar
🌏
Working from home

Rasha G. Salim rasha-salim

🌏
Working from home
View GitHub Profile
@rasha-salim
rasha-salim / PY0101EN-1-1-Types.ipynb
Created April 18, 2020 11:40
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-1-1-Types.ipynb
Created April 18, 2020 11:40
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-1-2-Strings.ipynb
Created April 20, 2020 04:24
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-2-1-Tuples.ipynb
Created April 20, 2020 04:45
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-2-2-Lists.ipynb
Created April 20, 2020 04:54
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-2-3-Dictionaries.ipynb
Created April 22, 2020 04:05
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-2-4-Sets.ipynb
Created April 22, 2020 04:30
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / PY0101EN-5-1-Numpy1D.ipynb
Created May 6, 2020 13:20
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasha-salim
rasha-salim / creating_dataset.py
Created February 7, 2021 08:45
Createing Dataset object in activeloop hub
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
@rasha-salim
rasha-salim / reading_landcovernet_data
Created February 7, 2021 09:05
Reading our data into a numpy array
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 = []