Skip to content

Cannot run the web_demo issue #2075

Closed
Closed
@nguyenminhduc9988

Description

The web_demo return this when I try running it I cant figure out what's wrong the mean image should be the same size as the input but I get this error

Traceback (most recent call last):
File "./examples/web_demo/app.py", line 222, in <module> start_from_terminal(app)
File "./examples/web_demo/app.py", line 210, in start_from_terminal app.clf = ImagenetClassifier(**ImagenetClassifier.default_args)
File "./examples/web_demo/app.py", line 125, in __init__ mean=np.load(mean_file), channel_swap=(2, 1, 0)
File "/home/ubuntu/caffe/python/caffe/classifier.py", line 34, in __init__ self.transformer.set_mean(in_, mean)
File "/home/ubuntu/caffe/python/caffe/io.py", line 254, in set_mean raise ValueError('Mean shape incompatible with input shape.')
ValueError: Mean shape incompatible with input shape.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions