mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-01 10:29:09 +00:00
fixed waifu2x-caffe parsing error
This commit is contained in:
parent
91401977da
commit
ab2f982a84
@ -222,9 +222,9 @@ class Upscaler:
|
|||||||
raise e
|
raise e
|
||||||
|
|
||||||
# waifu2x-caffe scale_ratio, scale_width and scale_height check
|
# waifu2x-caffe scale_ratio, scale_width and scale_height check
|
||||||
if self.driver == 'waifu2x-caffe':
|
if self.driver == 'waifu2x_caffe':
|
||||||
if (driver_settings['scale_width'] != 0 and driver_settings['scale_width'] == 0 or
|
if (driver_settings['scale_width'] != 0 and driver_settings['scale_height'] == 0 or
|
||||||
driver_settings['scale_width'] == 0 and driver_settings['scale_width'] != 0):
|
driver_settings['scale_width'] == 0 and driver_settings['scale_height'] != 0):
|
||||||
Avalon.error('Only one of scale_width and scale_height is specified for waifu2x-caffe')
|
Avalon.error('Only one of scale_width and scale_height is specified for waifu2x-caffe')
|
||||||
raise AttributeError('only one of scale_width and scale_height is specified for waifu2x-caffe')
|
raise AttributeError('only one of scale_width and scale_height is specified for waifu2x-caffe')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user