343392813338ae7b10b0a3bbb3b5a9a7da6e588d,lib/model/losses_plaid.py,LossWrapper,__call__,#LossWrapper#Any#Any#,608
Before Change
loss = 0.0
for func, weight in zip(self._loss_functions, self._loss_weights):
loss += (K.mean(func(y_true, y_pred)) * weight)
return loss
After Change
n_pred = K.reshape(n_pred, K.int_shape(y_pred))
this_loss = func(n_true, n_pred)
loss_dims = K.ndim(this_loss)
loss += (K.mean(this_loss, axis=list(range(1, loss_dims))) * weight)
return loss
@classmethod
def _apply_mask(cls, y_true, y_pred, mask_channel, mask_prop=1.0):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepfakes/faceswap
Commit Name: 343392813338ae7b10b0a3bbb3b5a9a7da6e588d
Time: 2020-08-27
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/model/losses_plaid.py
Class Name: LossWrapper
Method Name: __call__
Project Name: Ambrosys/glyph
Commit Name: 89abe76991f3204a8b81930d870825b94819c10c
Time: 2017-01-03
Author: mquade@uni-potsdam.de
File Name: examples/remote/experiment.py
Class Name: Experiment
Method Name: __call__
Project Name: Esri/raster-functions
Commit Name: e0ff7e10a230b0523d0a4796e38957490a05f8f9
Time: 2015-10-19
Author: akferoz@esri.com
File Name: functions/RankFilter.py
Class Name: RankFilter
Method Name: updatePixels