Skip to content

Instantly share code, notes, and snippets.

View cenkbircanoglu's full-sized avatar
🏠
Working from home

Cenk Bircanoğlu cenkbircanoglu

🏠
Working from home
  • Adevinta
  • Paris
View GitHub Profile
@cenkbircanoglu
cenkbircanoglu / extract_ILSVRC.sh
Created October 19, 2023 16:31 — forked from BIGBALLON/extract_ILSVRC.sh
script for ImageNet data extract.
#!/bin/bash
#
# script to extract ImageNet dataset
# ILSVRC2012_img_train.tar (about 138 GB)
# ILSVRC2012_img_val.tar (about 6.3 GB)
# make sure ILSVRC2012_img_train.tar & ILSVRC2012_img_val.tar in your current directory
#
# https://github.com/facebook/fb.resnet.torch/blob/master/INSTALL.md
#
# train/
@cenkbircanoglu
cenkbircanoglu / cam.py
Created January 27, 2023 21:55
unet model to use in isim
import torch
import torch.nn.functional as F
from models.unet.net import Net
class CAM(Net):
def __init__(self, *args, **kwargs):
super(CAM, self).__init__(*args, **kwargs)
@cenkbircanoglu
cenkbircanoglu / Makefile
Created December 23, 2019 10:41 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
# -*- coding: utf-8 -*-
""" Convolutional Neural Network for MNIST dataset classification task.
References:
Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. "Gradient-based
learning applied to document recognition." Proceedings of the IEEE,
86(11):2278-2324, November 1998.
Links:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cenkbircanoglu
cenkbircanoglu / gist:ad03b342e411c4f58257f3fcbff83a9e
Created December 15, 2016 09:05 — forked from jonkaya/gist:10239129
CentosPythonEnvironmentSetup.sh
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install wget # gen'l reqs
@cenkbircanoglu
cenkbircanoglu / # gimp - 2016-05-14_10-43-37.txt
Created May 14, 2016 07:46
gimp on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for gimp on Mac OS X 10.11.5
Build date: 2016-05-14 10:43:37
@cenkbircanoglu
cenkbircanoglu / gist:6cb964d57d72754ee5183b6f598bc11c
Created May 5, 2016 20:12 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
create table deps_saved_ddl
(
deps_id serial primary key,
deps_view_schema varchar(255),
deps_view_name varchar(255),
deps_ddl_to_run text
);
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as
$$
@cenkbircanoglu
cenkbircanoglu / ElasticSearch.java
Created February 9, 2015 12:32
ElasticSearch Querying with Spark
package net.egemsoft.rrd.elasticPaths;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.MapWritable;
import org.apache.hadoop.io.Text;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.serializer.KryoSerializer;
import org.elasticsearch.hadoop.mr.EsInputFormat;