Skip to content

Commit

Permalink
Cleaned up file hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
hvy committed Jul 13, 2016
1 parent 89d6a60 commit a7e2b57
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 371 deletions.
69 changes: 0 additions & 69 deletions VGG.py

This file was deleted.

Binary file added images/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
169 changes: 0 additions & 169 deletions max_pooling_2d.py

This file was deleted.

12 changes: 6 additions & 6 deletions VGGVisualizer.py → models/VGG.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import chainer.links as L
import chainer.functions as F
from chainer import Variable
from max_pooling_2d import max_pooling_2d
from unpooling_2d import unpooling_2d
from lib.chainer.chainer.functions.pooling import max_pooling_2d
from lib.chainer.chainer.functions.pooling import unpooling_2d

F.max_pooling_2d = max_pooling_2d
F.unpooling_2d = unpooling_2d

input_dimensions = (244, 244)
# Override original Chainer functions
F.max_pooling_2d = max_pooling_2d.max_pooling_2d
F.unpooling_2d = unpooling_2d.unpooling_2d


class VGG(chainer.Chain):
"""Input dimensions are (244, 244)."""
def __init__(self):
super(VGG, self).__init__(
conv1_1=L.Convolution2D(3, 64, 3, stride=1, pad=1),
Expand Down
Empty file added models/__init__.py
Empty file.
126 changes: 0 additions & 126 deletions unpooling_2d.py

This file was deleted.

2 changes: 1 addition & 1 deletion visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import cv2 as cv
from chainer import serializers
from chainer import Variable
from VGGVisualizer import VGG
from models.VGG import VGG
import imgutil


Expand Down

0 comments on commit a7e2b57

Please sign in to comment.