Commit 75ff348e authored by Yuxin Wu's avatar Yuxin Wu

use better pre-commit hooks and fix lint.

parent a7321f06
......@@ -92,7 +92,6 @@ class Model(GANModelDesc):
x = tf.cast(x, tf.uint8)
tf.summary.image(name, x, max_outputs=30)
with argscope([Conv2D, FullyConnected],
W_init=tf.truncated_normal_initializer(stddev=0.02)):
with tf.variable_scope('gen'):
......@@ -150,6 +149,7 @@ def get_config():
max_epoch=400,
)
if __name__ == '__main__':
args = DCGAN.get_args()
if args.sample:
......
#!/bin/sh
#!/bin/bash -e
flake8 .
cd examples && flake8 .
cd examples
GIT_ARG="--git-dir ../.git --work-tree .."
# find out modified python files
MOD=$(git $GIT_ARG status -s | grep -E '\.py$' | grep -E '^\b+M\b+' | cut -c 4-)
flake8 $MOD
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment