Skip to content

Model download needs to create downloads/modules/packages/ directory if it doesn't exist #18

@Daniel15

Description

@Daniel15

CodeProject.AI Server info

Server version:   2.9.7
System:           Docker (b8c4699aeb25)
Operating System: Linux (Ubuntu 22.04 Jammy Jellyfish)
CPUs:             13th Gen Intel(R) Core(TM) i5-13500 (Intel)
                  1 CPU x 14 cores. 20 logical processors (x64)
System RAM:       125 GiB
Platform:         Linux
BuildConfig:      Release
Execution Env:    Docker
Runtime Env:      Production
Runtimes installed:
  .NET runtime:     9.0.0
  .NET SDK:         Not found
  Default Python:   3.10.12
  Go:               Not found
  NodeJS:           Not found
  Rust:             Not found
Video adapter info:
System GPU info:
  GPU 3D Usage       0%
  GPU RAM Usage      0
Global Environment variables:
  CPAI_APPROOTPATH = <root>
  CPAI_PORT        = 32168

Describe the bug
If the downloads/modules/packages/ObjectDetectionCoral directory doesn't exist, attempting to download any model results in an error message like this:

17:01:02:Unable to download and install objectdetection-mobilenet-large-edgetpu.zip: Unable to download 'objectdetection-mobilenet-large-edgetpu.zip'. Error: Could not find a part of the path '/app/downloads/modules/packages/ObjectDetectionCoral/objectdetection-mobilenet-large-edgetpu.zip'.

To Reproduce
Steps to reproduce the behavior:

  1. Create a fresh CodeProject AI Docker container
  2. Download the "Object Detection (Coral)" module
  3. Attempt to download models for the Coral module

Expected behavior
Download succeeds

Actual behaviour
Download fails unless I manually create the /app/downloads/modules/packages/ObjectDetectionCoral/ directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions