Git Product home page Git Product logo

Comments (3)

lj1995-computer-vision avatar lj1995-computer-vision commented on June 21, 2024

video_upscaler=VideoRealWaifuUpScaler(nt,n_gpu,scale,half,tile,p_sleep,decode_sleep,encode_params,cache_mode,alpha)

video_upscaler=VideoRealWaifuUpScaler(nt,n_gpu,scale,half,tile,p_sleep,decode_sleep,encode_params,cache_mode,alpha) def init(self,nt,n_gpu,scale,half,tile,cache_mode,p_sleep,decode_sleep,encode_params):

位置参数传递位置错误 引发报错

感谢提醒,是我在更新20220227版本的时候,忘记添加alpha参数了。
现在已修复,大佬您再跑跑试试看?

from ailab.

carl-Victor avatar carl-Victor commented on June 21, 2024

upcunet_v3.py完全没有用config.py内的配置,默认把input_dir文件夹内所有图片的所有方案输出一遍。
而循环过程中tile_mode 从0开始,一但原图过大且显存不足会引发报错。
中途报错tmp临时文件不会删除(没啥影响)

input_dir="%s/input1080P"%root_path

output_dir="%s/opt-dir-all-test"%root_path

tmp_path = os.path.join(root_path, "tmp", "%s.%s" % (int(time.time() * 1000000), suffix))

input_dir(input1080P)、 output_dir(opt-dir-all-test)、 tmp_path(tmp)均未给出文件夹,代码中只创建了output_dir文件夹

for weight_path, scale in [("updated_weights/up2x-latest-denoise3x.pth", 2),("updated_weights/up3x-latest-denoise3x.pth", 3),("updated_weights/up4x-latest-denoise3x.pth", 4),]:

这里的模型文件夹名称用的是updated_weights,项目内的文件夹和config.py内用的都是weights_v3。
报错:FileNotFoundError: [Errno 2] No such file or directory: 'updated_weights/up2x-latest-denoise3x.pth'

def __init__(self,nt,n_gpu,scale,half,tile,cache_mode,alpha,p_sleep,decode_sleep,encode_params,cache_mode,alpha):

参数传递重复(最后两个)

from ailab.

lj1995-computer-vision avatar lj1995-computer-vision commented on June 21, 2024

upcunet_v3.py完全没有用config.py内的配置,默认把input_dir文件夹内所有图片的所有方案输出一遍。 而循环过程中tile_mode 从0开始,一但原图过大且显存不足会引发报错。 中途报错tmp临时文件不会删除(没啥影响)

input_dir="%s/input1080P"%root_path

output_dir="%s/opt-dir-all-test"%root_path

tmp_path = os.path.join(root_path, "tmp", "%s.%s" % (int(time.time() * 1000000), suffix))

input_dir(input1080P)、 output_dir(opt-dir-all-test)、 tmp_path(tmp)均未给出文件夹,代码中只创建了output_dir文件夹

for weight_path, scale in [("updated_weights/up2x-latest-denoise3x.pth", 2),("updated_weights/up3x-latest-denoise3x.pth", 3),("updated_weights/up4x-latest-denoise3x.pth", 4),]:

这里的模型文件夹名称用的是updated_weights,项目内的文件夹和config.py内用的都是weights_v3。
报错:FileNotFoundError: [Errno 2] No such file or directory: 'updated_weights/up2x-latest-denoise3x.pth'

def __init__(self,nt,n_gpu,scale,half,tile,cache_mode,alpha,p_sleep,decode_sleep,encode_params,cache_mode,alpha):

参数传递重复(最后两个)

upcunet_v3.py的main里面是我写本地测试的代码,要尽量覆盖多个参数,不是直接给用户直接用的。这个文件是给开发者调upscaler类用的,调法参考下面。win版本打包里面,直接不会有main这些。

inference_video.py参数传递重复错误已修复。

from ailab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.