Skip to content

Commit

Permalink
fix fp32 for shufflecugan
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiosnik777 committed Apr 24, 2023
1 parent 1918b13 commit 944af83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env/inference/shufflecugan_ncnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def execute(n, upscaled, metric_thresh, f):

ncnn_shape_hint = (in_tile_channels, in_tile_height, in_tile_width, out_tile_channels, out_tile_height, out_tile_width)

if tiling == False:
if fp16 == False:
upscaled = core.ncnn.Model(clip, network_path=engine, num_streams=threading(), fp16=True, use_ncnn_network_format=True, ncnn_shape_hint=ncnn_shape_hint)
else:
upscaled = core.ncnn.Model(clip, network_path=engine, num_streams=threading(), fp16=False, use_ncnn_network_format=True, ncnn_shape_hint=ncnn_shape_hint, tilesize=[tileHeight, tileWidth])
upscaled = core.ncnn.Model(clip, network_path=engine, num_streams=threading(), fp16=False, use_ncnn_network_format=True, ncnn_shape_hint=ncnn_shape_hint)

if frameskip:
metric_thresh = 0.999
Expand Down

0 comments on commit 944af83

Please sign in to comment.