6b7b82ff60b8ca7a26b50e50210a06a46bdc848a,lib/prosr/models/generators.py,ProSR,forward,#ProSR#,131
Before Change
except AttributeError:
max_scale_idx = len(self.opt.scale) - 1
if scale is None:
scale = self.opt.scale[max_scale_idx]
feats = self.get_init_conv(scale)(x)
output = []
for s in range(1, int(log2(scale))+1):
if self.opt.residual_denseblock:
After Change
def forward(self,x,upscale_factor=None, base_img=None, blend=1.0):
if upscale_factor is None:
upscale_factor = self.max_scale
else:
valid_upscale_factors = [2**(i+1) for i in range(self.n_denseblocks)]
if not (1 < upscale_factor <= self.max_scale and upscale_factor % 2 == 0):
error("Invalid upscaling factor: choose one of: {}".format(
valid_upscale_factors))
raise SystemExit(1)
feats = self.get_init_conv(log2(upscale_factor))(x)
output = []
for s in range(1, int(log2(upscale_factor))+1):
if self.residual_denseblock:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: fperazzi/proSR
Commit Name: 6b7b82ff60b8ca7a26b50e50210a06a46bdc848a
Time: 2018-07-09
Author: fperazzi@adobe.com
File Name: lib/prosr/models/generators.py
Class Name: ProSR
Method Name: forward
Project Name: aertslab/pySCENIC
Commit Name: 0e6804ca93a4f76300134a126d5942114b71901c
Time: 2018-12-14
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/cli/pyscenic.py
Class Name:
Method Name: prune_targets_command
Project Name: MycroftAI/mycroft-precise
Commit Name: 5ce56ff7e7f0c085bdff9745471c50aa4d0e1faa
Time: 2017-11-03
Author: matthew3311999@gmail.com
File Name: precise/stream.py
Class Name:
Method Name: main
Project Name: unitedstates/congress-legislators
Commit Name: 0c7eceb6693d5538f66b6375a8747e2677180ccd
Time: 2016-11-10
Author: jt@occams.info
File Name: test/validate.py
Class Name:
Method Name: check_id_types