Skip to content

Commit 8590866

Browse files
print info
1 parent cabb839 commit 8590866

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

NN/encoders/Encoder.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ def _createGlobalContextModel(X, config, latentDim, name):
163163
raise NotImplementedError('Unknown global context model: {}'.format(model))
164164

165165
def _withPositionConfig(config, name):
166-
if config is None: return lambda x, _: x
166+
if config is None:
167+
print('[Encoder] Positions: No')
168+
return lambda x, _: x
169+
170+
print('[Encoder] Positions: Yes')
167171

168172
if isinstance(config, bool): config = { 'N': 32 }
169173
assert isinstance(config, dict), 'config must be a dictionary'

NN/restorators/IRestorationProcess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def __init__(self, predictions):
2020
if 'rgb' not in predictions: predictions.insert(0, 'rgb')
2121
self._outputs = predictions
2222
self._channels = IRestorationProcess.getOutputSize(predictions)
23+
24+
print('[IRestorationProcess] Restorator:', self.__class__.__name__)
2325
return
2426

2527
def forward(self, x0, xT=None):

0 commit comments

Comments
 (0)