Support for external taggers
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- api, backend, machine-learning
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách recognize hiện gọi các tagger tích hợp sẵn của nó và cách dữ liệu hình ảnh cùng các tag di chuyển qua ứng dụng PHP. So sánh luồng đó với POST request và JSON response được đề xuất, bao gồm cấu hình cho endpoint, model và threshold. Công việc được hoàn tất khi có thể chọn một dịch vụ bên ngoài và sử dụng các tag mà dịch vụ đó trả về mà không cần loại bỏ các tagger tích hợp sẵn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the feature you'd like to request
Given how limiting the built-in AI models can be it would be nice if it was possible to add external taggers that could be used instead of the built-in ones.
Describe the solution you'd like
A possible solution is using web requests to communicate with external web servers where the image can be sent over and the server can respond with tags that match the image. This will allow to use different models that aren't implemented in the recognize app itself and also stronger models that may not work in docker setups or the host hardware.
For example the https://github.com/AUTOMATIC1111/stable-diffusion-webui project hosts a web server that can generate images locally. Using the extension https://github.com/picobyte/stable-diffusion-webui-wd14-tagger and --api option, a user can send a POST request with any image encoded in base64 and get a json response of all tags in it including weights on how much the image matches set tags.
One the external setup is complete the process is simple:
- Convert the image to base64 data
- Craft it into a javascript object. (eg.
{"image": "data:image/<type>;base64,<image data>", "model": "<model name>", "threshold": 0.35}) - Create a POST request to a target link (eg. "
http://127.0.0.1:7860/tagger/v1/interrogate") - Get a response like:
{
"caption": {
"tag": {
"tag1": 0.6852931380271912,
"tag2": 0.6729011535644531,
"tag3": 0.46537110209465027,
"tag4": 0.5044106245040894
}
}
}
I don't know any other image tagging software that can be interacted using web requests but I think it's a nice start. Even if its only for object tagging.
I wish I could provide a pull request with this option but unfortunately I'm not skilled enough to write clean PHP code with the nextcloud API.
Describe alternatives you've considered
Implementing new models into the app itself is time consuming and slow. And making them work with the limited dependencies of the nextcloud environment and docker instances is even harder.
- Ngôn ngữ chính
- PHP
- Star
- 699
- Fork
- 68
- Merge trung bình
- 18 giờ 34 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/recognize
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
insertDeletion looks up recognize_fs_deletions by node_id alone, which no index covers — bulk removals scan the whole table per fileCó thể đã có người làm @marcelklehr đã nhận 8 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
-
Model download button in UIĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Recognize maintenance routine unnecessarily redownloads Tensorflow CPU and GPU models every timeCó thể làm lại được @marcelklehr đã nhận 189 ngày trước và không có pull request nào đang mở. Đang mởbug
nextcloud/recognize#1478 · 3 bình luận · 1 người được giao ·
Tất cả issue của nextcloud/recognize
Issue tương tự
-
Bug Enhancement Performance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature Status: Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
frontend low-priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
mplodowski/dynamicpdf-plugin#336 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
AdvancedCustomFields/acf#1044 ·
-
Add ZammadCó thể đã có người làm @Arslan-TR đã nhận hôm nay. Đang mởrequest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
endoflife-date/endoflife.date#11298 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày