Skip to content

Commit

Permalink
Initialize framework
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberZHG committed Nov 13, 2018
1 parent efa531d commit 608e92a
Show file tree
Hide file tree
Showing 12 changed files with 85 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,18 @@ venv.bak/

# mypy
.mypy_cache/

# System thumbnail
.DS_Store

# IDE
.idea

# Temporary README
README.rst

# Images
*.png

# Models
*.h5
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
python:
- 2.7
- 3.6
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install coveralls
before_script:
- bash lint.sh
script:
- bash test.sh
after_success:
coveralls
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# keras-drop-block
# Keras DropBlock

[![Travis](https://travis-ci.org/CyberZHG/keras-drop-block.svg)](https://travis-ci.org/CyberZHG/keras-drop-block)
[![Coverage](https://coveralls.io/repos/github/CyberZHG/keras-drop-block/badge.svg?branch=master)](https://coveralls.io/github/CyberZHG/keras-drop-block)

Implementation of [DropBlock](https://arxiv.org/pdf/1810.12890.pdf)

## Install

```bash
pip install keras-drop-block
```

## Usage

```python

```
Empty file added demo/__init__.py
Empty file.
Empty file added keras_drop_block/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
pycodestyle --max-line-length=120 keras_drop_block tests demo
5 changes: 5 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
rm -f README.rst && m2r README.md
rm -f dist/*
python3 setup.py sdist
twine upload dist/*
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tensorflow
pycodestyle
coverage
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy
Keras
23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from setuptools import setup, find_packages

setup(
name='keras-drop-block',
version='0.1.0',
packages=find_packages(),
url='https://github.com/CyberZHG/keras-drop-block',
license='MIT',
author='CyberZHG',
author_email='[email protected]',
description='DropBlock implemented in Keras',
long_description=open('README.rst', 'r').read(),
install_requires=[
'numpy',
'keras',
],
classifiers=(
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
)
2 changes: 2 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
nosetests --with-coverage --cover-html --cover-html-dir=htmlcov --cover-package="keras_drop_block" tests
Empty file added tests/__init__.py
Empty file.

0 comments on commit 608e92a

Please sign in to comment.