Git Product home page Git Product logo

furymartin / picf Goto Github PK

View Code? Open in Web Editor NEW
47.0 1.0 8.0 2.18 MB

Picf 是一款智能相册,具有人脸识别分类、人脸搜索、相似图片筛查等功能。 Picf is a smart photo album, which can classify images by face, search images with same face as well as find similar images.

License: GNU General Public License v3.0

Python 85.12% Cython 0.22% C 14.61% Batchfile 0.06%
album facenet face-recognition buaa

picf's Introduction

Metrics

picf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

picf's Issues

选取文件夹后运行出错 请问是图片的原因吗 我用的是ORL数据集中pgm图片转为的jpg

您好,我下载运行后出现了以下错误,搜索之后并没有找到解决方法
能麻烦您看一下吗
Microsoft Windows [版本 10.0.22621.1413]
(c) Microsoft Corporation。保留所有权利。

E:\Picf_v1.6>conda activate Picf
(Picf) E:\Picf_v1.6>python main.py

Started 3 processes..
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "D:\Code\Anaconda3\envs\Picf\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "D:\Code\Anaconda3\envs\Picf\lib\multiprocessing\pool.py", line 44, in mapstar
return list(map(*args))
File "E:\Picf_v1.6\utils\embedder.py", line 71, in save_embeddings
model = load_model("Models/facenet.h5",compile=False)
File "D:\Code\Anaconda3\envs\Picf\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "D:\Code\Anaconda3\envs\Picf\lib\site-packages\keras\utils\generic_utils.py", line 792, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "E:\Picf_v1.6\gui\uis\windows\main_window\setup_main_window.py", line 460, in run
sorter_main(self.path)
File "E:\Picf_v1.6\utils\face_functions.py", line 17, in sorter_main
if embedder(image_paths):
File "E:\Picf_v1.6\utils\embedder.py", line 182, in embedder
pool.map(partial_embeddings, split_data)
File "D:\Code\Anaconda3\envs\Picf\lib\multiprocessing\pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "D:\Code\Anaconda3\envs\Picf\lib\multiprocessing\pool.py", line 657, in get
raise self._value
ValueError: bad marshal data (unknown type code)

人脸搜索页面底部栏加载出错

人脸搜索页面底部栏加载出错

现象描述

当从人脸搜索页面切出去再切回来,底部信息显示错误。

解决方法

优化底部信息显示逻辑。

为人脸搜索和相似筛查添加计时功能

为人脸搜索和相似筛查添加计时功能

问题描述

现在人脸搜索和相似筛查时,没有计时显示,用户不清楚程序是否正常运行,希望添加计时显示。

软件启动时预加载模型,减少识别时等待时间

软件启动时预加载模型,减少识别时等待时间

问题描述

现阶段,模型会在点击“开始识别后”加载,且加载耗时很长,不方便。

改进方案

将单独开一个QThread用来预加载模型,加载完之后再开始识别

滚动条需要改善UI

滚动条需要改善UI

现象描述

右侧滚动条的 UI 太丑了,需要改善以实现 UI 风格的统一。

image

当图片加载被打断时,图片会产生无法更改的重叠

当图片加载被打断时,图片会产生无法更改的重叠

问题描述

对人物 A 进行命名,命名结束后,程序会加载合并之后的结果。
当图片仍正在加载时,点击人物 B 的分类结果,则人物 A 的分类结果会置于页面底部,无法通过点击左侧导航栏刷新页面。

无法运行如何解决呢?

按照说明的步骤操作,最后出现下面的错误,不知道需要如何解决。谢谢!
(Picf) C:\Users\PC_202\APP\Picf_v1.6>python main.py
Traceback (most recent call last):
File "main.py", line 20, in
from gui.uis.windows.main_window.functions_main_window import *
File "C:\Users\PC_202\APP\Picf_v1.6\gui\uis\windows\main_window_init_.py", line 19, in
from . ui_main import UI_MainWindow
File "C:\Users\PC_202\APP\Picf_v1.6\gui\uis\windows\main_window\ui_main.py", line 23, in
from gui.core.qt_core import *
File "C:\Users\PC_202\APP\Picf_v1.6\gui\core\qt_core.py", line 25, in
from PySide6.QtCore import *
ModuleNotFoundError: No module named 'PySide6'

将分类结果排序显示

将分类结果排序显示

问题描述:

现在的分类结果是随机顺序,查找起来不方便。此外,建议将 未命名 分组始终置于最后。

image

关于预训练模型的问题

大佬你好,我想学习一下你的代码,但是发现在模型加载的时候缺少两个,一个是facenet.h5 一个是RFB.h5模型,前者我已经找到,但是后者我找了很久都没有找到,想求助一下你,能不能上传一份RFB.h5的模型?

加载模型出错呢

Traceback (most recent call last):
File "F:\work\win\wf\py\Picf\gui\uis\windows\main_window\setup_main_window.py", line 460, in run
sorter_main(self.path)
File "F:\work\win\wf\py\Picf\utils\face_functions.py", line 17, in sorter_main
if embedder(image_paths):
File "F:\work\win\wf\py\Picf\utils\embedder.py", line 182, in embedder
pool.map(partial_embeddings, split_data)
File "C:\Users\licl.conda\envs\Picf\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Users\licl.conda\envs\Picf\lib\multiprocessing\pool.py", line 771, in get
raise self._value
OSError: No file or directory found at Models/facenet.h5

首次识别分类后图片无法加载

首次选择文件夹并识别分类后,图片无法加载

现象描述

  • 首次选择文件夹并进行识别分类后,图片无法加载

image

可能原因

  • 首次选择文件夹后,self.settings未更新,导致读取不到图片路径

人脸搜索功能每次使用都要加载一遍模型,过于耗时

人脸搜索功能每次使用都要加载一遍模型

现象描述

人脸搜索功能每次使用都要加载一遍模型,每次都要花4-5秒等待模型加载,不方便。

解决方法

第一次搜索时加载模型,并保存在变量中,以后搜索时直接进行调用。

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.