Skip to content

Commit

Permalink
(#3) Defense: Impl. Denoiser
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed May 1, 2022
1 parent cf6a98c commit 1893475
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/defense/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import List
from typings.models import Model
from utils.layers import SlqLayer

import numpy as np
import tensorflow as tf
Expand Down Expand Up @@ -54,3 +55,17 @@ def predict(epoch, logs):
)

return [keras.callbacks.LambdaCallback(on_epoch_end=predict)]


class Denoiser(Model):
def _model(self) -> keras.Model:
return keras.Sequential([SlqLayer()])

def pre_train(self):
pass

def post_train(self):
pass

def custom_callbacks(self) -> List[keras.callbacks.Callback]:
pass

0 comments on commit 1893475

Please sign in to comment.