mowshon / age-and-gender Goto Github PK
View Code? Open in Web Editor NEWPredict Age and Gender of people from images | Determination of gender and age
Home Page: https://python-scripts.com
License: MIT License
Predict Age and Gender of people from images | Determination of gender and age
Home Page: https://python-scripts.com
License: MIT License
will it work with cpu only?
Here is a simple colab installation steps to reproduce(just run all cells):
https://colab.research.google.com/drive/1qIO7nJinqQpZuL3Hp7jB-iI6XD3jSzBr?usp=sharing
Hello! Help please, I cannot understand what needs to be fixed to solve this error at the installation stage...
running install
running bdist_egg
running egg_info
writing age_and_gender.egg-info\PKG-INFO
writing dependency_links to age_and_gender.egg-info\dependency_links.txt
writing requirements to age_and_gender.egg-info\requires.txt
writing top-level names to age_and_gender.egg-info\top_level.txt
reading manifest file 'age_and_gender.egg-info\SOURCES.txt'
writing manifest file 'age_and_gender.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
C:\Users\username\Documents\FILES\Packages\age_gender\age-and-gender
-- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.18363.
-- pybind11 v2.5.0
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/username/Documents/FILES/Packages/age_gender/age-and-gender/build/temp.win-amd64-3.6/Release
Microsoft (R) Build Engine версии 15.8.169+g1ccb72aefa для .NET Framework
(C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
source.cpp
c:\users\username\documents\files\packages\age_gender\age-and-gender\libs\dlib\dlib\all../image_loader/png_loader.c
pp(13): fatal error C1083: Не удается открыть файл включение: png.h: No such file or directory, [C:\Users\username\D
ocuments\FILES\Packages\age_gender\age-and-gender\build\temp.win-amd64-3.6\Release\age_and_gender.vcxproj]
Traceback (most recent call last):
File "setup.py", line 63, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)#, shell=True
File "C:\Anaconda3\lib\subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
Hi. Could you help me?
PS C:\Users\User\Downloads\age-and-gender-master> python setup.py install --user
running install
running bdist_egg
running egg_info
creating age_and_gender.egg-info
writing age_and_gender.egg-info\PKG-INFO
writing dependency_links to age_and_gender.egg-info\dependency_links.txt
writing requirements to age_and_gender.egg-info\requires.txt
writing top-level names to age_and_gender.egg-info\top_level.txt
writing manifest file 'age_and_gender.egg-info\SOURCES.txt'
reading manifest file 'age_and_gender.egg-info\SOURCES.txt'
writing manifest file 'age_and_gender.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:7 (PROJECT):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/User/Downloads/age-and-gender-master/build/temp.win-amd64-3.8/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "setup.py", line 67, in
setup(
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools_init_.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\bdist_egg.py", line 174, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\bdist_egg.py", line 160, in call_command
self.run_command(cmdname)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 32, in run
self.build_extension(ext)
File "setup.py", line 60, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\User\Downloads\age-and-gender-master', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\User\Downloads\age-and-gender-master\build\lib.win-amd64-3.8\', '-DPYTHON_EXECUTABLE=C:\Users\User\AppData\Local\Programs\Python\Python38\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\User\Downloads\age-and-gender-master\build\lib.win-amd64-3.8\', '-A', 'x64']' returned non-zero exit status 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.