Skip to content

Instantly share code, notes, and snippets.

View Dsantra92's full-sized avatar
🛠️
building

Deeptendu Santra Dsantra92

🛠️
building
  • 10:20 (UTC +05:30)
View GitHub Profile
@Dsantra92
Dsantra92 / lableme_json_to_mask.py
Last active November 9, 2021 12:01
Convert a label-me JSON file to a mask array in python
import json
from labelme.utils import shapes_to_label
filepath = "orthophotoNF.json" # Use your own filename
# Load the JSON file
with open(filepath, "r",encoding="utf-8") as f:
ortho_json = json.load(f)
# Get height and width of original image
@Dsantra92
Dsantra92 / install_julia.sh
Last active April 11, 2022 18:53
Installs Julia-1.7.2 with some packages
#!/bin/bash
#########################################
# This script installs Julia-1.7.2 with
# some basic packages. After installation
# Julia can be accessed just by typing
# julia in the terminal.
##########################################
rm -r ~/julia