nextcloud / nextcloud/recognize

Add option to customize model download location

Open
#1,160 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
699
Forks
68
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Describe the feature you'd like to request

I'm deploying nextcloud through nixOS. However, the location where the models are hard-coded to the location of the addon. That means that downloading the model will fail on NixOS, since the nix-store is read-only after deployment.

Describe the solution you'd like

Please add an option where you can configure where the models are downloaded to. IMHO, that option wouldn't be too hard to implement. Also, the flexibility to store potentially large models on a dedicated data partition will probably be useful to non-NixOS users as well.

Describe alternatives you've considered

For my usecase, I could download the models in the build-step. This would probably be the more nix-like way to deploy things. However, an option to store the model elsewhere would increase the flexibility of all deployments and follow best practices better.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PHP code that downloads models and the configuration entry points that determine their current location. Trace how the download path is selected and verify whether it is writable in a NixOS deployment. Done means users can configure a model directory and downloads are stored there instead of only in the add-on location.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.