Giter Club home page Giter Club logo

gradio-wd14-glm-imageanalysis's Introduction

mt_logo

Gradio-WD14-GLM-ImageAnalysis

该项目基于gradio、wd1.4、chatglm杂交组合,变相实现图像分析的功能,仅为自己练习Gradio,没有额外价值。

Gradio ✨✨ | ChatGLM-6B ✨✨   | WD14-Tagger ✨✨ 

1709778541350

快速开始

1.拉取代码

git clone https://github.com/Skyblueeeee/Gradio-WD14-GLM-ImageAnalysis.git

2.新建虚拟环境

conda create -n py39_imgA python==3.9

3.下载安装依赖

下载Torch、Torchvision:torch-2.0.0%2Bcu117-cp39   torchvision-0.15.0%2Bcu117-cp39
https://download.pytorch.org/whl/torch_stable.html

cd Gradio-WD14-GLM-ImageAnalysis

pip install 下载的torch

pip install 下载的torchvision

pip install -r requirements.txt -i 国内镜像源

4.下载模型

git clone https://huggingface.co/THUDM/chatglm-6b-4b.git

git clone https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger-v2.git

5.测试效果

1709782209886

1709782538370

建议

1.如果真的有需求,可以选择更好的大语言模型。

2.使用开源的VisualGLM-6B模型等

https://github.com/THUDM/VisualGLM-6B

gradio-wd14-glm-imageanalysis's People

Contributors

skyblueeeee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.