GithubHelp home page GithubHelp logo

tensorflow-vgg's Introduction

tensorflow-vgg

Re-implementation of VGG Network in tensorflow

setup

pip install pyyaml skimage skdata tensorflow-gpu

training

python train_model_simple.py experiment.yaml

training on multiple gpus

python train_model_parallel.py experiment.yaml

prediction

python predict.py dog.jpg

tensorflow-vgg's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tensorflow-vgg's Issues

tensorflow new version problems

in vgg.py, line 21,
net = tf.sub(input_tensor, mu, name="input_mean_centered")
latest version of tensorflow (1.3) should be
net = tf.subtract(input_tensor, mu, name="input_mean_centered")

bug fixed on tf1.5

1. tf.pack ---> tf.stack
2. tf.softmax_cross_entropy_with_logits(logits, onehot_labels, name='xentropy') ---> tf.softmax_cross_entropy_with_logits(logits=logits, labels=onehot_labels, name='xentropy')
3. add conv3_3 : net = L.conv(net, name="conv3_3", kh=3, kw=3, n_out=256)

MetricsLogger

The function MetricsLogger is missing from tools.py

Accuracy not that great

When I ran the code as it is, the accuracy (loss) wasn't that great. Anyone seeing such issues. I changed the batch size to 50. Apart from that no other change.

Tensorflow version

I hope you describe the environment that you checked.
I guess some of the functions that you used are not supported by the current version anymore.

'function' object has no attribute 'config_file'

(windows7+Python 3.6.4+TensorFlow 1.7)

When I run python train_model_simple.py experiment.yaml , an error occur.

Error:
'function' object has no attribute 'config_file'

they are happens in

parser = argparse.ArgumentParser()
parser.add_argument('config_file', help='YAML formatted config file')
args = parser.parse_args()
with open(args.config_file) as fp:
    config.update(yaml.load(fp))

How should I do,help me. Thanks

Python3.6.4 : No module named 'skdata'

(windows7+Python 3.6.4+TensorFlow 1.7)

When I run python train_model_simple.py experiment.yaml , an error occur.
Error:

from skdata.cifar10.dataset import CIFAR10

ModuleNotFoundError: No module named 'skdata'

How should I do,help me. Thanks

Code in train_model_simple.py is cannot work

the last few lines of train_model_simple.py has problems:

args = parser.parse_args()
with open(args.config_file) as fp:
    config.update(yaml.load(fp))

My environment : windows7+Anaconda3(python 3.6.4+Tensorflow 1.7)
Please help me,Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.