Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using OpenVINO 2022.1 causes re-download of cached blob every time #49

Open
bgro82 opened this issue Mar 12, 2023 · 0 comments
Open

Using OpenVINO 2022.1 causes re-download of cached blob every time #49

bgro82 opened this issue Mar 12, 2023 · 0 comments

Comments

@bgro82
Copy link

bgro82 commented Mar 12, 2023

Hi there,

I updated my code to use OpenVINO 2022.1 and now every time I run the script it says "Cached blob is invalid, will download a new one from API."

I am using the following code (essentially a modified version of the gen2-mjpeg-streaming demo):


    # Start defining a pipeline
    pipeline = dai.Pipeline()
    pipeline.setOpenVINOVersion(version=dai.OpenVINO.Version.VERSION_2022_1)
    # Define a source - color camera
    colorCam = pipeline.create(dai.node.ColorCamera)

    if depth:
        mobilenet = pipeline.create(dai.node.MobileNetSpatialDetectionNetwork)
        monoLeft = pipeline.create(dai.node.MonoCamera)
        monoRight = pipeline.create(dai.node.MonoCamera)
        stereo = pipeline.create(dai.node.StereoDepth)
    else:
        mobilenet = pipeline.create(dai.node.MobileNetDetectionNetwork)

    colorCam.setPreviewSize(512, 512)
    colorCam.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
    colorCam.setInterleaved(False)
    colorCam.setColorOrder(dai.ColorCameraProperties.ColorOrder.BGR)

    mobilenet.setBlobPath(blobconverter.from_zoo("person-vehicle-bike-detection-crossroad-1016", shaves=6, version="2022.1"))
    mobilenet.setConfidenceThreshold(0.5)
    mobilenet.input.setBlocking(False)

Let me know if helpful to provide any other details!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant