国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【milvus】向量數(shù)據(jù)庫,用來做以圖搜圖+人臉識別的特征向量

這篇具有很好參考價(jià)值的文章主要介紹了【milvus】向量數(shù)據(jù)庫,用來做以圖搜圖+人臉識別的特征向量。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

1. 安裝milvus

ref:https://milvus.io/docs
第一次裝東西,要把遇到的問題和成功經(jīng)驗(yàn)都記錄下來。

1.Download the YAML file

wget https://github.com/milvus-io/milvus/releases/download/v2.2.11/milvus-standalone-docker-compose.yml -O docker-compose.yml

看一下下載下來的是什么東西

cat docker-compose.yml
version: '3.5'

services:
  etcd:
    container_name: milvus-etcd
    image: quay.io/coreos/etcd:v3.5.5
    environment:
      - ETCD_AUTO_COMPACTION_MODE=revision
      - ETCD_AUTO_COMPACTION_RETENTION=1000
      - ETCD_QUOTA_BACKEND_BYTES=4294967296
      - ETCD_SNAPSHOT_COUNT=50000
    volumes:
      - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
    command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --                                                                                                      data-dir /etcd

  minio:
    container_name: milvus-minio
    image: minio/minio:RELEASE.2023-03-20T20-16-18Z
    environment:
      MINIO_ACCESS_KEY: minioadmin
      MINIO_SECRET_KEY: minioadmin
    volumes:
      - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
    command: minio server /minio_data
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3

  standalone:
    container_name: milvus-standalone
    image: milvusdb/milvus:v2.2.11
    command: ["milvus", "run", "standalone"]
    environment:
      ETCD_ENDPOINTS: etcd:2379
      MINIO_ADDRESS: minio:9000
    volumes:
      - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
    ports:
      - "19530:19530"
      - "9091:9091"
    depends_on:
      - "etcd"
      - "minio"

networks:
  default:

Start Milvus
In the same directory as the docker-compose.yml file, start up Milvus by running:

sudo docker-compose up -d

報(bào)錯(cuò)則需要安裝docker-compose了

(base) [root@localhost ~]# sudo docker-compose up -d
sudo: docker-compose:找不到命令

下載最新版的docker-compose 文件

https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64

添加可執(zhí)行權(quán)限

[root@offline-client bin]# mv docker-compose-linux-x86_64 docker-compose
[root@offline-client bin]# docker-compose version
Docker Compose version v2.5.0

【milvus】向量數(shù)據(jù)庫,用來做以圖搜圖+人臉識別的特征向量,深度學(xué)習(xí),linux,人工智能

 curl -SL https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose

docker-compose version

(base) [root@localhost bin]# docker-compose version
Docker Compose version v2.5.0

Start Milvus

In the same directory as the docker-compose.yml file, start up Milvus by running:

sudo docker-compose up -d

回到docker-compose.yml所在的目錄,執(zhí)行 以上命令
開始安裝了:
【milvus】向量數(shù)據(jù)庫,用來做以圖搜圖+人臉識別的特征向量,深度學(xué)習(xí),linux,人工智能
After Milvus standalone starts, there will be three docker containers running, including the Milvus standalone service and its two dependencies.
執(zhí)行完以上命令,會有三個(gè)docker containers服務(wù)起來, 包括:Milvus standalone service and its two dependencies.
一個(gè)milvus單體服務(wù)。以及它的兩個(gè)依賴。

      Name                     Command                  State                            Ports
--------------------------------------------------------------------------------------------------------------------
milvus-etcd         etcd -advertise-client-url ...   Up             2379/tcp, 2380/tcp
milvus-minio        /usr/bin/docker-entrypoint ...   Up (healthy)   9000/tcp
milvus-standalone   /tini -- milvus run standalone   Up             0.0.0.0:19530->19530/tcp, 0.0.0.0:9091->9091/tcp

連接到Milvus
Verify which local port the Milvus server is listening on. Replace the container name with your own.

docker port milvus-standalone 19530/tcp

You can connect to Milvus cluster using the local IP address and port number returned by this command.

stop Milvus 停止Milvus
To stop Milvus standalone, run:

sudo docker-compose down

To delete data after stopping Milvus, run:

sudo rm -rf  volumes

【milvus】向量數(shù)據(jù)庫,用來做以圖搜圖+人臉識別的特征向量,深度學(xué)習(xí),linux,人工智能
我的幾個(gè)也起來了。

2. 使用milvus做事情

ref:https://milvus.io/docs/example_code.md
todo文章來源地址http://www.zghlxwxcb.cn/news/detail-572529.html

到了這里,關(guān)于【milvus】向量數(shù)據(jù)庫,用來做以圖搜圖+人臉識別的特征向量的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 《向量數(shù)據(jù)庫指南》——開源框架NVIDIA Merlin & 向量數(shù)據(jù)庫Milvus

    《向量數(shù)據(jù)庫指南》——開源框架NVIDIA Merlin & 向量數(shù)據(jù)庫Milvus

    推薦系統(tǒng) pipeline 中至關(guān)重要的一環(huán)便是為用戶檢索并找到最相關(guān)的商品。為了實(shí)現(xiàn)這一目標(biāo),通常會使用低維向量(embedding)表示商品,使用數(shù)據(jù)庫存儲及索引數(shù)據(jù),最終對數(shù)據(jù)庫中數(shù)據(jù)進(jìn)行近似最近鄰(ANN)搜索。這些向量表示是通過深度學(xué)習(xí)模型獲取的,而這些深度學(xué)習(xí)

    2024年02月05日
    瀏覽(23)
  • 云原生向量數(shù)據(jù)庫Milvus

    云原生向量數(shù)據(jù)庫Milvus

    什么是 Milvus Milvus 是一款云原生向量數(shù)據(jù)庫,它具備高可用、高性能、易拓展的特點(diǎn),用于海量向量數(shù)據(jù)的實(shí)時(shí)召回。 Milvus 基于 FAISS、Annoy、HNSW 等向量搜索庫構(gòu)建,核心是解決稠密向量相似度檢索的問題。在向量檢索庫的基礎(chǔ)上,Milvus 支持?jǐn)?shù)據(jù)分區(qū)分片、數(shù)據(jù)持久化、增量

    2024年02月02日
    瀏覽(28)
  • 向量數(shù)據(jù)庫Annoy和Milvus

    向量數(shù)據(jù)庫Annoy和Milvus

    Annoy 和 Milvus 都是用于向量索引和相似度搜索的開源庫,它們可以高效地處理大規(guī)模的向量數(shù)據(jù)。 Annoy(Approximate Nearest Neighbors Oh Yeah): Annoy 是一種近似最近鄰搜索算法,它通過構(gòu)建一個(gè)樹狀結(jié)構(gòu)來加速最近鄰搜索。 Annoy 支持支持歐氏距離,曼哈頓距離,余弦距離,漢明距

    2024年02月09日
    瀏覽(24)
  • docker 安裝向量數(shù)據(jù)庫 Milvus

    docker 安裝向量數(shù)據(jù)庫 Milvus

    官網(wǎng)為 www.milvus.io/ Milvus 向量數(shù)據(jù)庫能夠幫助用戶輕松應(yīng)對海量非結(jié)構(gòu)化數(shù)據(jù)(圖片 / 視頻 / 語音 / 文本)檢索。單節(jié)點(diǎn) Milvus 可以在秒內(nèi)完成十億級的向量搜索(請參考:在線教程),分布式架構(gòu)亦能滿足用戶的水平擴(kuò)展需求。 Milvus 向量數(shù)據(jù)庫的應(yīng)用場景包括:互聯(lián)網(wǎng)娛樂

    2024年02月13日
    瀏覽(45)
  • milvus: 專為向量查詢與檢索設(shè)計(jì)的向量數(shù)據(jù)庫

    milvus: 專為向量查詢與檢索設(shè)計(jì)的向量數(shù)據(jù)庫

    milvus docs milvus release Milvus的目標(biāo)是:store, index, and manage massive embedding vectors generated by deep neural networks and other machine learning (ML) models. Milvus 向量數(shù)據(jù)庫專為向量查詢與檢索設(shè)計(jì),能夠?yàn)槿f億級向量數(shù)據(jù)建立索引。 與現(xiàn)有的關(guān)系數(shù)據(jù)庫主要按照預(yù)定義的模式處理結(jié)構(gòu)化數(shù)據(jù)不同,

    2024年02月15日
    瀏覽(24)
  • 《向量數(shù)據(jù)庫指南》——AI原生向量數(shù)據(jù)庫Milvus Cloud 2.3新功能

    《向量數(shù)據(jù)庫指南》——AI原生向量數(shù)據(jù)庫Milvus Cloud 2.3新功能

    支持用戶通過 upsert 接口更新或插入數(shù)據(jù)。已知限制,自增 id 不支持 upsert;upsert 是內(nèi)部實(shí)現(xiàn)是 delete + insert所以性能上會有一定損耗,如果明確知道是寫入數(shù)據(jù)的場景請繼續(xù)使用 insert。 支持用戶通過輸入?yún)?shù)指定 search 的 distance 進(jìn)行查詢,返回所有與目標(biāo)向量距離位于某一

    2024年02月09日
    瀏覽(25)
  • 使用docker搭建Milvus向量數(shù)據(jù)庫

    使用docker搭建Milvus向量數(shù)據(jù)庫

    官網(wǎng)是這樣說的: Milvus創(chuàng)建于2019年,目標(biāo)單一:存儲、索引和管理由深度神經(jīng)網(wǎng)絡(luò)和其他機(jī)器學(xué)習(xí)(ML)模型生成的大量嵌入向量。 作為一個(gè)專門用于處理輸入向量查詢的數(shù)據(jù)庫,它能夠?qū)θf億規(guī)模的向量進(jìn)行索引。與現(xiàn)有的關(guān)系數(shù)據(jù)庫不同,Milvus主要按照預(yù)定義的模式處

    2024年02月09日
    瀏覽(93)
  • milvus向量數(shù)據(jù)庫搭建及可視化

    官方文檔 https://milvus.io/docs/install_standalone-docker.md sudo curl -L “https://github.com/docker/compose/releases/download/v2.10.0/docker-compose- ( u n a m e ? s ) ? (uname -s)- ( u nam e ? s ) ? (uname -m)” -o /usr/local/bin/docker-compose sudo curl -L https://get.daocloud.io/docker/compose/releases/download/v2.10.0/docker-compose- unam

    2024年02月08日
    瀏覽(20)
  • 《向量數(shù)據(jù)庫指南》——Milvus 中的向量索引概覽和平面索引

    《向量數(shù)據(jù)庫指南》——Milvus 中的向量索引概覽和平面索引

    目錄 Milvus 中的向量索引 索引概覽 平面索引 在之前的教程中,我們簡單介紹了單詞 Embedding 示例,了解了 Embedding 的強(qiáng)大,以及如何在向量數(shù)據(jù)庫中進(jìn)行向量存儲和索引。此外,我們也簡單介紹了最近鄰搜索算法,這個(gè)問題涉及根據(jù)所選距離度量找到距離查詢向量最接近的向

    2024年02月13日
    瀏覽(15)
  • Docker Compose安裝milvus向量數(shù)據(jù)庫單機(jī)版-milvus基本操作

    Docker Compose安裝milvus向量數(shù)據(jù)庫單機(jī)版-milvus基本操作

    以管理員身份運(yùn)行powershell Ubuntu 22.04 LTS可以不裝,wsl必須更新。。。 如果 操作超時(shí) ,可以試試開代理。 重啟電腦。。。 設(shè)置用戶名、密碼 https://hub.docker.com/ 重啟電腦。。。 power shell輸入以下命令,下載yaml文件到指定目錄,并重命名為docker-compose.yml 或者 點(diǎn)擊一下鏈接直接

    2024年01月19日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包