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

Method feed_val_data

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

Source from the content-addressed store, hash-verified

205
206################# test function and it helpers
207 def feed_val_data(self, data, need_GT=True):
208 LQ_IMG = data['LQ']
209 GT_IMG = data['GT']
210 # LQright_IMG = data['LQright']
211 self.var_L = LQ_IMG.to(self.device)
212 self.de_path = data['LQ_path']
213 # self.varright_L = LQright_IMG.to(self.device)
214 if need_GT:
215 self.real_H = GT_IMG.to(self.device)
216
217 def split2(self,dataset,size,h,w):
218 newdataset=[]

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected