This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.layers import Conv2D, DepthwiseConv2D, SeparableConv2D, BatchNormalization, Activation, Input, GlobalAveragePooling2D, Dense, AveragePooling2D | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import Callback, History | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 | |
| from keras.utils import to_categorical | |
| import time, optuna, os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras.layers import Conv2D, DepthwiseConv2D, SeparableConv2D, BatchNormalization, Activation, Input, GlobalAveragePooling2D, AveragePooling2D, Dense | |
| from keras.models import Model | |
| from keras.callbacks import Callback | |
| from keras.datasets import cifar10 | |
| from keras.utils import to_categorical | |
| import time, pickle | |
| def create_block(mode, input, ch): | |
| if mode == 0: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.applications import InceptionV3, VGG16, MobileNet | |
| from tensorflow.keras.layers import GlobalAveragePooling2D, Dense | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import History, Callback | |
| import tensorflow.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from keras.utils import to_categorical | |
| from keras.datasets import cifar10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.applications import MobileNet | |
| from tensorflow.keras.layers import GlobalAveragePooling2D, Dense | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
| from tensorflow.keras.callbacks import History, Callback | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.layers import Conv2D, BatchNormalization, Activation, Input, AveragePooling2D, GlobalAveragePooling2D, Dense | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
| from tensorflow.keras.callbacks import History, Callback | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 | |
| from keras.utils import to_categorical |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.layers import Conv2D, BatchNormalization, Activation, Input, AveragePooling2D, GlobalAveragePooling2D, Dense | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
| from tensorflow.keras.callbacks import History | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 | |
| from keras.utils import to_categorical |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.applications import MobileNet | |
| from tensorflow.keras.layers import GlobalAveragePooling2D, Dense, Dropout | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import History | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 | |
| from keras.utils import to_categorical |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _________________________________________________________________ | |
| Layer (type) Output Shape Param # | |
| ================================================================= | |
| input_1 (InputLayer) (None, 64, 64, 3) 0 | |
| _________________________________________________________________ | |
| block1_conv1 (Conv2D) (None, 64, 64, 64) 1792 | |
| _________________________________________________________________ | |
| batch_normalization (BatchNo (None, 64, 64, 64) 256 | |
| _________________________________________________________________ | |
| activation (Activation) (None, 64, 64, 64) 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.applications import VGG16 | |
| from tensorflow.keras.layers import BatchNormalization, Activation, GlobalAveragePooling2D, Dense | |
| from tensorflow.keras.models import Model | |
| import tensorflow.keras.activations as activations | |
| from tensorflow.keras.callbacks import History | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras.layers import Input, Conv2D, BatchNormalization, Activation, AveragePooling2D, GlobalAvgPool2D, Dense, Concatenate | |
| from tensorflow.keras.models import Model | |
| import tensorflow.keras.backend as K | |
| from tensorflow.keras.callbacks import History, Callback | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from keras.objectives import categorical_crossentropy | |
| import numpy as np | |
| from keras.datasets import cifar10 |