From 7a8590edec3596f945e99b2cd1e14eb6ccd55c26 Mon Sep 17 00:00:00 2001 From: Han Zhang Date: Sun, 7 Oct 2018 17:33:41 -0400 Subject: [PATCH] add google header --- dataset.py | 15 +++++++++++++++ discriminator.py | 15 +++++++++++++++ eval_imagenet.py | 15 +++++++++++++++ generator.py | 15 +++++++++++++++ model.py | 15 +++++++++++++++ non_local.py | 15 +++++++++++++++ ops.py | 15 +++++++++++++++ train_imagenet.py | 15 +++++++++++++++ utils_ori.py | 15 +++++++++++++++ 9 files changed, 135 insertions(+) diff --git a/dataset.py b/dataset.py index 2b84970..429b521 100644 --- a/dataset.py +++ b/dataset.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + import tensorflow as tf import os IMAGE_SIZE=128 diff --git a/discriminator.py b/discriminator.py index f3e37d3..55e218f 100644 --- a/discriminator.py +++ b/discriminator.py @@ -1,4 +1,19 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== """The discriminator of SNGAN.""" + import tensorflow as tf import ops import non_local diff --git a/eval_imagenet.py b/eval_imagenet.py index 7d7818e..e708f9c 100644 --- a/eval_imagenet.py +++ b/eval_imagenet.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + """Generic train.""" from __future__ import absolute_import from __future__ import division diff --git a/generator.py b/generator.py index f133dba..c357540 100644 --- a/generator.py +++ b/generator.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + """The generator of SNGAN.""" import tensorflow as tf diff --git a/model.py b/model.py index 236f091..70e2b15 100644 --- a/model.py +++ b/model.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + """The DCGAN Model.""" from __future__ import absolute_import from __future__ import division diff --git a/non_local.py b/non_local.py index bc72cea..e54315c 100644 --- a/non_local.py +++ b/non_local.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + import tensorflow as tf import numpy as np import ops diff --git a/ops.py b/ops.py index fb4ad52..30ece1e 100644 --- a/ops.py +++ b/ops.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + """The building block ops for Spectral Normalization GAN.""" from __future__ import absolute_import from __future__ import division diff --git a/train_imagenet.py b/train_imagenet.py index b901bcd..f353f35 100644 --- a/train_imagenet.py +++ b/train_imagenet.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + """Train Imagenet.""" from __future__ import absolute_import from __future__ import division diff --git a/utils_ori.py b/utils_ori.py index c2a82b1..aa4d7f4 100644 --- a/utils_ori.py +++ b/utils_ori.py @@ -1,3 +1,18 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +#You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== + """Some codes from https://github.com/Newmu/dcgan_code.""" from __future__ import absolute_import