Skip to content

Instantly share code, notes, and snippets.

View mvgolom's full-sized avatar

Marcos Golom mvgolom

  • campo mourao
View GitHub Profile
@mvgolom
mvgolom / spacenet_segnet.py
Created July 23, 2023 12:21 — forked from rdelassus/spacenet_segnet.py
a segnet-like architecture for building detection in the spacenet dataset
#from __future__ import absolute_import
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
from keras.callbacks import ModelCheckpoint
from keras.models import Sequential
from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import Layer, Dense, Dropout, Activation, Flatten, Reshape, Merge, Permute
from keras.layers import ZeroPadding2D, UpSampling2D
from keras.layers.normalization import BatchNormalization
import sys
@mvgolom
mvgolom / run_python_script_in_conda_env.bat
Created November 30, 2023 10:48 — forked from maximlt/run_python_script_in_conda_env.bat
Run a Python script in a conda environment from a batch file
@echo OFF
rem How to run a Python script in a given conda environment from a batch file.
rem It doesn't require:
rem - conda to be in the PATH
rem - cmd.exe to be initialized with conda init
rem Define here the path to your conda installation
set CONDAPATH=C:\ProgramData\Miniconda3
rem Define here the name of the environment