Giter Site home page Giter Site logo

Lazy loading is not enabled. about vs-dpir HOT 6 CLOSED

holywu avatar holywu commented on June 7, 2024
Lazy loading is not enabled.

from vs-dpir.

Comments (6)

HolyWu avatar HolyWu commented on June 7, 2024

CUDA_MODULE_LOADING is already set to LAZY on

os.environ["CUDA_MODULE_LOADING"] = "LAZY"
, hence you shouldn't see that warning message unless you are using something like subprocess.run() with a custom env argument.

from vs-dpir.

superyu1337 avatar superyu1337 commented on June 7, 2024

Yeah that's why im confused. Im simply running the script using
vspipe -c y4m denoise.vpy - | mpv -

My script:

import vapoursynth as vs
import os
core = vs.core

from vsdpir import dpir

clip = core.ffms2.Source(source='./testclip.mkv')

clip = core.resize.Spline16(clip, format=vs.RGBS, matrix_in_s="470bg", dither_type="error_diffusion")

ret = dpir(clip, trt=True, tile_w=854, tile_h=480)

ret = core.resize.Spline16(clip=ret, format=vs.YUV420P16, matrix_s="709", range_s="full")

ret.set_output()

from vs-dpir.

HolyWu avatar HolyWu commented on June 7, 2024

What do you get if you run python -c "import vsdpir; print(vsdpir.__version__)" under cmd?

from vs-dpir.

superyu1337 avatar superyu1337 commented on June 7, 2024

What do you get if you run python -c "import vsdpir; print(vsdpir.__version__)" under cmd?

Sorry for answering this late. I'm getting 3.1.1

from vs-dpir.

HolyWu avatar HolyWu commented on June 7, 2024

Then I have no idea what's the culprit, sorry. Maybe try manually adding CUDA_MODULE_LOADING to your system environment variable.

from vs-dpir.

superyu1337 avatar superyu1337 commented on June 7, 2024

Got it working fine when setting the env var within my shell instead.

from vs-dpir.

Related Issues (19)

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.