Skip to content

Commit

Permalink
clean useless-code
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryuX committed Mar 24, 2020
1 parent 4bdba96 commit 74bf506
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 16 deletions.
3 changes: 0 additions & 3 deletions dataset_checker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import cv2
import numpy as np
import tensorflow as tf
import tensorflow_datasets as tfds
from modules.utils import set_memory_growth
from modules.dataset import load_cifar10_dataset

Expand Down
1 change: 0 additions & 1 deletion modules/lr_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import tensorflow as tf
import math


def MultiStepLR(initial_learning_rate, lr_steps, lr_rate, name='MultiStepLR'):
Expand Down
3 changes: 1 addition & 2 deletions modules/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import functools
import tensorflow as tf
from absl import logging
from tensorflow.keras import Model, Sequential
from tensorflow.keras.layers import (Input, Dense, Flatten, Dropout, Conv2D,
from tensorflow.keras.layers import (Input, Dense, Flatten, Conv2D,
AveragePooling2D, GlobalAveragePooling2D,
ReLU)
from modules.operations import (OPS, FactorizedReduce, ReLUConvBN,
Expand Down
9 changes: 3 additions & 6 deletions modules/models_search.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import functools
import tensorflow as tf
from absl import logging
from tensorflow.keras import Model, Sequential
from tensorflow.keras.layers import (Input, Dense, Flatten, Dropout, Conv2D,
MaxPool2D, GlobalAveragePooling2D,
ReLU, Softmax)
from tensorflow.keras.layers import (Input, Dense, Flatten, Conv2D, MaxPool2D,
GlobalAveragePooling2D, Softmax)
from modules.operations import (OPS, FactorizedReduce, ReLUConvBN,
BatchNormalization, Identity, drop_path,
kernel_init, regularizer)
BatchNormalization, kernel_init, regularizer)
from modules.genotypes import PRIMITIVES, Genotype


Expand Down
2 changes: 1 addition & 1 deletion modules/operations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import tensorflow as tf
from tensorflow.keras import Sequential
from tensorflow.keras.layers import (Conv2D, SeparableConv2D, MaxPool2D,
AveragePooling2D, ReLU, Dropout)
AveragePooling2D, ReLU)


OPS = {'none': lambda f, s, wd, affine: Zero(s),
Expand Down
1 change: 0 additions & 1 deletion modules/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import cv2
import yaml
import sys
import time
Expand Down
1 change: 0 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from absl import app, flags, logging
from absl.flags import FLAGS
import os
import numpy as np
import tensorflow as tf

from modules.models import CifarModel
Expand Down
1 change: 0 additions & 1 deletion train_search.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from absl import app, flags, logging
from absl.flags import FLAGS
import os
import numpy as np
import tensorflow as tf

from modules.models_search import SearchNetArch
Expand Down

0 comments on commit 74bf506

Please sign in to comment.