Skip to content

Model and proto files for python #2

@huyvvo

Description

@huyvvo

Thank you for the python version of face parsing.
Could you also share the model and proto files for Python? I tried the model for matlab but it does not work in python with the following error message:

huy@Dom:~/Face_parsing_python/python_scripts$ python
Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import caffe
import test
ls
Traceback (most recent call last):
File "", line 1, in
NameError: name 'ls' is not defined
args = test.parse_arges()
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'test' has no attribute 'parse_arges'
args = test.parse_args()
args
Namespace(device_id=2, model='models/face_parsing_v1_iter_20800.caffemodel', proto='models/face_parsing_v1_test4one.prototxt', root_dir='/Data/')
net = caffe.Net(args.proto, args.model, caffe.TEST)
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0623 13:34:52.418781 6606 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0623 13:34:52.418848 6606 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0623 13:34:52.418864 6606 _caffe.cpp:142] Net('models/face_parsing_v1_test4one.prototxt', 1, weights='models/face_parsing_v1_iter_20800.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 456:16: Message type "caffe.LayerParameter" has no field named "resize_param".
F0623 13:34:52.425428 6606 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: models/face_parsing_v1_test4one.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions