Comments (15)
Hi @jyotikhetan,
Thank you for raising this up. Could it be possible to format the tickets description (cmd+e) to make it easier to read? Thanks a lot.
from example-video-search.
Hello @jyotikhetan ,
The problem is that u do not have a pretrained model downloaded for the AudioCLIP
to work. You need to download a pretrained model and use it as model_path
parameter. I will soon try to point you to a direction where you can download such a model
from example-video-search.
If you follow the steps from the README, u should see that it is expected from you to download a model and a script is provided to help with that.
bash scripts/download_model.sh
from example-video-search.
hi @JoanFM
I have downloaded the script & saved in folder models in same project along with bpe_simple_vocab_16e6.txt.gz. I tried giving path dynamically also.. still no luck.!!
from example-video-search.
can u list here the exact steps u are taking? how are u downloading, how are u passing the parameter?
from example-video-search.
Followed the same step as readme file
bash scripts/download_model.sh
python app.py -m grpc
While running this command, I am getting the error.
from example-video-search.
this script downloads the model under models path, while the executor expects it under assets. You are not changing the argument passed to the executor
from example-video-search.
Could you please share exactly the changes you made to the flows
? It seems that u are loading AudioCLIP
as jinahub
executor and not as jinahub+docker
, is it right?
Also, could you also clarify at which stage do you see the error?
from example-video-search.
hi @JoanFM , I have given the model path dynamically this time... & changed the version of the executor, I am using python executor not docker...
AudioCLIPTextEncoder/v0.3
SimpleIndexer/v0.1
AudioCLIPEncoder/v0.3
Now it's working..!! Now I am trying to index different videos... !!
Thank you very much for your help..!!
from example-video-search.
hi @JoanFM , Still I am getting the error , It was working last time. Please help
image_filter@7666[W]:Pea is being closed before being ready. Most likely some other Pea in the Flow or Pod failed to start
frame_extractor@7666[W]:Pea is being closed before being ready. Most likely some other Pea in the Flow or Pod failed to start
Traceback (most recent call last):
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 98, in __init__
req = REQUIREMENT.parseString(requirement_string)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1654, in parseString
raise exc
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1644, in parseString
loc, tokens = self._parse( instring, 0 )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 3417, in parseImpl
loc, exprtokens = e._parse( instring, loc, doActions )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 3739, in parseImpl
return self.expr._parse( instring, loc, doActions, callPreParse=False )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 3400, in parseImpl
loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1406, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 2711, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pkg_resources._vendor.pyparsing.ParseException: Expected W:(abcd...) (at char 0), (line:1, col:1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "app.py", line 76, in <module>
main()
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "app.py", line 58, in main
with Flow.load_config('index-flow.yml', override_with=override_dict) as f:
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/flow/base.py", line 1118, in __enter__
return self.start()
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/flow/base.py", line 1165, in start
self.enter_context(v)
File "/usr/lib/python3.7/contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/peapods/pods/__init__.py", line 197, in __enter__
return self.start()
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/peapods/pods/__init__.py", line 574, in start
self.enter_context(self.replica_set)
File "/usr/lib/python3.7/contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/peapods/pods/__init__.py", line 363, in __enter__
pea = BasePea(_args)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/peapods/peas/__init__.py", line 135, in __init__
self.runtime_cls = self._get_runtime_cls()
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/peapods/peas/__init__.py", line 427, in _get_runtime_cls
update_runtime_cls(self.args)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/peapods/peas/helper.py", line 106, in update_runtime_cls
_args.uses = HubIO(_hub_args).pull()
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/hubble/hubio.py", line 727, in pull
pkg_path=pkg_dist_path,
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/hubble/hubapi.py", line 182, in install_package_dependencies
elif not is_requirements_installed(requirements_file, show_warning=True):
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/jina/hubble/helper.py", line 335, in is_requirements_installed
pkg_resources.require(requirements)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 728, in resolve
requirements = list(requirements)[::-1]
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3084, in parse_requirements
yield Requirement(line)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3094, in __init__
super(Requirement, self).__init__(requirement_string)
File "/home/jyoti/jina_video/jin_videoenv/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 102, in __init__
requirement_string[e.loc : e.loc + 8], e.msg
pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "'-f https'": Expected W:(abcd...)
Thank you
from example-video-search.
@mapleeit @numb3r3 could you please take a look at the issue? It seems aomething with HubIO is failing to parse.
@jyotikhetan could you please add to the best level of detail possible the steps needed to reproduce. Also can you please format the past message so that the Traceback looks better?
from example-video-search.
Sure. Joan. I'll check.
So the original error here is Parse error at "'-f https'": Expected W:(abcd...)
. But I remember that we fixed it before.
Hey @jyotikhetan . Which jina version are you using?
from example-video-search.
@jyotikhetan FYI, I've updated the codes to jina==2.5.4
. It should work now.
from example-video-search.
hi @nan-wang , Thank you for update...!!works for me too...
from example-video-search.
Closing for now, thanks @jyotikhetan !
from example-video-search.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-video-search.