69813de15a040584756c5dbfa61468f20c97f8af,lib/model/normalization/normalization_common.py,,,#,488
Before Change
// Update normalization into Keras custom objects
for name, obj in inspect.getmembers(sys.modules[__name__]):
if inspect.isclass(obj) and obj.__module__ == __name__:
get_custom_objects().update({name: obj})
After Change
from lib.utils import get_backend
if get_backend() == "amd":
from keras.backend import normalize_data_format // pylint:disable=ungrouped-imports
else:
from tensorflow.python.keras.utils.conv_utils import normalize_data_format
class InstanceNormalization(Layer):
Instance normalization layer (Lei Ba et al, 2016, Ulyanov et al., 2016).
Normalize the activations of the previous layer at each step, i.e. applies a transformation
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepfakes/faceswap
Commit Name: 69813de15a040584756c5dbfa61468f20c97f8af
Time: 2021-02-17
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/model/normalization/normalization_common.py
Class Name:
Method Name:
Project Name: vatlab/SoS
Commit Name: 4a1a6553615c224a8cca709bb6335288260b6734
Time: 2017-02-27
Author: ben.bog@gmail.com
File Name: sos/actions.py
Class Name:
Method Name: downloadURL
Project Name: deepfakes/faceswap
Commit Name: 27c8db43d1c6257b340f1545d6845639ccee2526
Time: 2019-04-09
Author: 44308116+kilroythethird@users.noreply.github.com
File Name: lib/model/layers.py
Class Name:
Method Name: