Skip to content

Commit

Permalink
print info
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenWizard2015 committed Apr 10, 2024
1 parent cabb839 commit 8590866
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NN/encoders/Encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ def _createGlobalContextModel(X, config, latentDim, name):
raise NotImplementedError('Unknown global context model: {}'.format(model))

def _withPositionConfig(config, name):
if config is None: return lambda x, _: x
if config is None:
print('[Encoder] Positions: No')
return lambda x, _: x

print('[Encoder] Positions: Yes')

if isinstance(config, bool): config = { 'N': 32 }
assert isinstance(config, dict), 'config must be a dictionary'
Expand Down
2 changes: 2 additions & 0 deletions NN/restorators/IRestorationProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def __init__(self, predictions):
if 'rgb' not in predictions: predictions.insert(0, 'rgb')
self._outputs = predictions
self._channels = IRestorationProcess.getOutputSize(predictions)

print('[IRestorationProcess] Restorator:', self.__class__.__name__)
return

def forward(self, x0, xT=None):
Expand Down

0 comments on commit 8590866

Please sign in to comment.