MCPcopy Create free account
hub / github.com/RylonW/DocNLC / feed_data

Method feed_data

models/SIEN_model.py:147–156  ·  view source on GitHub ↗
(self, data, need_GT=True)

Source from the content-addressed store, hash-verified

145 self.log_dict = OrderedDict()
146
147 def feed_data(self, data, need_GT=True):
148 LQ_IMG = data['LQ']
149 GT_IMG = data['GT']
150 # LQright_IMG = data['LQright']
151 self.var_L = LQ_IMG.to(self.device)
152 self.de_path = data['LQ_path']
153 # self.varright_L = LQright_IMG.to(self.device)
154 if need_GT:
155 self.real_H = GT_IMG.to(self.device)
156 # print('max:',max(LQ_IMG), 'min:',min(LQ_IMG))
157
158 def set_params_lr_zero(self):
159 # fix normal module

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected