Giter VIP home page Giter VIP logo

image-deduplicate-cluster-webui's People

Contributors

wsh032 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

image-deduplicate-cluster-webui's Issues

[BUG] ImportError: cannot import name 'cluster_ui' from 'ui'

类似的报错:

可能会在做为SD-WebUI扩展使用时出现

ImportError: cannot import name 'cluster_ui' from 'ui'

原因

因为python import的机制,即使修改了 sys.path 来指定模块导入路径优先级,对于已经导入过并存放于 sys.modules 的模块,也不会再次导入。

当与其他扩展一同使用时,只要另一个扩展也有一个名为 ui 的包或模块,就会出现上诉问题。要么是本扩展无法使用,要么是另一个扩展无法使用。

当独立运行时,这种情况不会出现。

解决方案:

在 V 2.0.1 版本中,文件夹 ./ui 将被更名为 ./img_dedup_clust

[TODO] 统一 `查重` 和 `聚类` 对于结果的操作和缓存机制

计划:
现在查重的结果只支持删除,聚类则支持删除重命名移动

同时启用缓存功能时候对如有缓存的处理情况不一样

  • 将进行统一
  • 将支持处理自定义附带文件,比如在移动图片时候,可以顺带移动自行指定的同名 .npz 文件

[TODO] 支持按选定的类别进行聚类

描述

比如说指定 衣服表情 等几个类别,聚类时候会只考虑该类的tag 如 skirtsmile 来进行聚类,而忽略其他tag,以实现更精细的聚类

计划实现方法

采用模型:deberta-v3-base-tasksource-nli对现有标签进行类型判定
将支持自定义类别

同时会预设并缓存常用类别,以实现高速判别

deduplicate_images.py 报错

作者好,

正常安装后,运行run_deduplicate_images.ps1时报错:

File "E:\AI SCRIPTS\image-deduplicate-cluster-webui\deduplicate_images.py", line 417, in
delet_button.click(fn=delet,
File "E:\AI SCRIPTS\image-deduplicate-cluster-webui\venv\lib\site-packages\gradio\events.py", line 132, in call
dep, dep_index = self.trigger.set_event_trigger(
File "E:\AI SCRIPTS\image-deduplicate-cluster-webui\venv\lib\site-packages\gradio\blocks.py", line 237, in set_event_trigger
special_args(fn) if fn else (None, None, None)
File "E:\AI SCRIPTS\image-deduplicate-cluster-webui\venv\lib\site-packages\gradio\helpers.py", line 631, in special_args
elif type_hint and issubclass(type_hint, EventData):
TypeError: issubclass() arg 1 must be a class

麻烦看看,感谢。

deduplicate_images报错

Traceback (most recent call last):
File "D:\image-deduplicate-cluster-webui-main\deduplicate_images.py", line 417, in
delet_button.click(fn=delet,
File "D:\image-deduplicate-cluster-webui-main\venv\lib\site-packages\gradio\events.py", line 132, in call
dep, dep_index = self.trigger.set_event_trigger(
File "D:\image-deduplicate-cluster-webui-main\venv\lib\site-packages\gradio\blocks.py", line 237, in set_event_trigger
special_args(fn) if fn else (None, None, None)
File "D:\image-deduplicate-cluster-webui-main\venv\lib\site-packages\gradio\helpers.py", line 631, in special_args
elif type_hint and issubclass(type_hint, EventData):
TypeError: issubclass() arg 1 must be a class

[TODO] 使用huggingface储存已编译好的模型

计划:
我先将 smilewolf 的 WD14 模型转换成onnx格式,然后上传到我自己的huggingface
这样可以直接下载模型使用,不再要求使用 tensorflow 编译

缺点:

  • 无法保证从 smilewolf 获取最新储存
  • 可能存在版权问题,因为这会失去对 smilewolf 的引用

优点:
部署加快

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.