Skip to content

Instantly share code, notes, and snippets.

View Cppowboy's full-sized avatar
🎯
Focusing

Pan Yinxu Cppowboy

🎯
Focusing
  • ModelBest
  • Beijing, China
View GitHub Profile
@Cppowboy
Cppowboy / HyperLSTMCell.py
Created October 10, 2018 12:33 — forked from tam17aki/HyperLSTMCell.py
An implementation of hyper LSTM.
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Akira TAMAMORI
# Copyright (C) 2016 by hardmaru
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@Cppowboy
Cppowboy / readme.md
Created November 7, 2017 03:06 — forked from flyyufelix/readme.md
Resnet-152 pre-trained model in Keras

ResNet-152 in Keras

This is an Keras implementation of ResNet-152 with ImageNet pre-trained weights. I converted the weights from Caffe provided by the authors of the paper. The implementation supports both Theano and TensorFlow backends. Just in case you are curious about how the conversion is done, you can visit my blog post for more details.

ResNet Paper:

Deep Residual Learning for Image Recognition.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
arXiv:1512.03385
@Cppowboy
Cppowboy / resnet-152_keras.py
Created November 7, 2017 03:06 — forked from mvoelk/resnet-152_keras.py
Resnet-152 pre-trained model in Keras 2.0
# -*- coding: utf-8 -*-
import cv2
import numpy as np
import copy
from keras.layers import Input, Dense, Conv2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Flatten, Activation, add
from keras.optimizers import SGD
from keras.layers.normalization import BatchNormalization
from keras.models import Model