GithubHelp home page GithubHelp logo

leikunx / ai_projects Goto Github PK

View Code? Open in Web Editor NEW
494.0 15.0 197.0 19.18 MB

I am a full-stack engineer for AI projects, glad to share my experience. pratices make the top engineer.

License: MIT License

Python 6.35% Jupyter Notebook 92.99% Batchfile 0.05% HTML 0.60%

ai_projects's Issues

复现第五章出现问题

你好,我在复现第五章的时候出现了问题
问题是No such file or directory: '../resources/pixel_mean.pickle'
pixel_mean.pickle在您的文件里找不到,就运行不了这个文件,请问可以把那个代码发出来吗?

部署问题

感谢作者的开源!
请问作者 这个 yolov3支持 tensorflow serving部署嘛?
需要输入输出节点....

关于005_模型部署中resources的一些疑问

模型部署这块我基本上跑完了,结果也差不多。
不过对于resources中的文件,有一些疑问。
FilaMono-Medium.otf
cifar10_ResNet56v2_model.162.h5
pixel_mean.pickle
这三个文件分别是什么呢,需要自己根据自己模型生成的吗

insightface里的2_demo.py会识别错人, 识别错的时候similar_percent为1,要怎么解决?

我的硬件环境(如果你觉得有必要的话),我的软件环境(操作系统型号 win7、python版本 3.6、各种库版本等)
我在复现第007_人脸识别实践_mxnet版insightFace 的第2步时遇到了问题
我遇到的问题:

    # 获取人脸对应的人名
    def get_personName_1(self, image_3d_array):
        try:
            if len(image_3d_array.shape) == 3:
                image_4d_array = np.expand_dims(image_3d_array, 0)
            elif len(image_3d_array.shape) == 4:
                image_4d_array = image_3d_array
            else:
                raise ValueError('传入图像数据的维度既不是3维也不是4维')
            feature_2d_array = self.face_vectorizer.get_feature_2d_array(image_4d_array)
            #if not self.database_2d_array:
             #   return '找不到'

            distance_1d_array = get_distance_1d_array(self.database_2d_array, feature_2d_array, self.distance_method)
            isSame_1d_array = np.less(distance_1d_array, self.bestThreshold)
            predict_personId_1d_array = self.personId_1d_array[isSame_1d_array]
            if len(predict_personId_1d_array) == 0:
                personName = 'Unvalid'
            else:
                min_distance_index = np.argmin(distance_1d_array)
                similar_personId = self.personId_1d_array[min_distance_index]
                predict_bincount_1d_array = np.bincount(predict_personId_1d_array)
                similar_percent = predict_bincount_1d_array[similar_personId] / self.bincount_1d_array[similar_personId]
                if similar_percent >= 0.97:
                    personName = self.personName_list[similar_personId]
                else:
                    personName = 'None'
            return personName + similar_percent
        except Exception as ex:
            print(ex)
            return 'Unkown'

如果这个人没在人脸库里, 也会识别成人脸库里的某个人. 我把lfw的数据都加入训练了,识别的速度很快, 但是未加入人脸库的人经常会误识

勘误

Hi, @StevenLei2017

感谢分享,非常棒的工作 👍 👍 👍

在训练模型的时候,保存训练数据类别名称的文件应该是voc_classes.txt吧,你在readme中写成了voc_names.txt了,应该是个笔误。还有就是,需要安装matplotlib库。

insightface里的2_demo.py怎么保存加载的数据,否则人脸库有几千张时每次启动都要加载非常久

我的硬件环境(如果你觉得有必要的话),我的软件环境(操作系统型号 win7、python版本 3.6、各种库版本等)
我在复现第007_人脸识别实践_mxnet版insightFace 的第2步时遇到了问题
我遇到的问题:
我把lfw的数据都加入了人脸库了, 一启动2_demo.py加载会耗时3个小时,怎么保存成文件,下次直接加载这个文件就行?

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.