ruishu / micro-projects Goto Github PK
View Code? Open in Web Editor NEWA collection of small code snippets for learning how to code
License: MIT License
A collection of small code snippets for learning how to code
License: MIT License
Hi, RuiShu,
I tried to run the code tf-ema. It showed a bug like this:
{'design': 'v1', 'logdir': 'log', 'lr': 0.001, 'run': 999, 'src': 'cifar10'}
Model name: model=classifier_src=cifar10_design=v1_run=0999
Traceback (most recent call last):
File "run_classifier.py", line 34, in
M = classifier()
File "/home/leifan/micro-projects-master/tf-ema/codebase/models/classifier.py", line 32, in classifier
src_y = des.classifier(T.src_x, T.phase, internal_update=True)
File "/home/leifan/micro-projects-master/tf-ema/codebase/models/designs/v1.py", line 39, in classifier
x = f(x, *f_args, **f_kwargs)
File "/home/leifan/tensorflow/_python_build/tensorflow/contrib/framework/python/ops/arg_scope.py", line 177, in func_with_args
return func(*args, **current_args)
File "/home/leifan/.local/lib/python2.7/site-packages/tensorbayes/layers/simple.py", line 66, in conv2d
initializer=tf.zeros_initializer)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 987, in get_variable
custom_getter=custom_getter)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 889, in get_variable
custom_getter=custom_getter)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 347, in get_variable
validate_shape=validate_shape)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 332, in _true_getter
caching_device=caching_device, validate_shape=validate_shape)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 683, in _get_single_variable
validate_shape=validate_shape)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variables.py", line 226, in init
expected_shape=expected_shape)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variables.py", line 303, in _init_from_args
initial_value(), name="initial_value", dtype=dtype)
File "/home/leifan/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 672, in
shape.as_list(), dtype=dtype, partition_info=partition_info)
TypeError: zeros_initializer() got multiple values for keyword argument 'dtype'
I saw your blog post here that was super informative:
http://ruishu.io/2017/11/22/ema/
I'm trying to reproduce EMA for YOLOv3 in PyTorch and am wondering if I should apply it after every batch or every optimizer update? Thank you!
https://github.com/ultralytics/yolov3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.