Comments (4)
Update:
using latest towhee version: 0.2.3.dev3
it reports "RuntimeError: Unkown error".
>>> from towhee import pipeline
>>> from PIL import Image
>>> img_path = '/Users/binbin/towhee/docs/towhee_logo.png'
>>> embedding_pipeline = pipeline('shiyu/img_object_embedding_pytorch_yolov5_resnet50')
>>> embedding = embedding_pipeline(img_path)
/Users/binbin/Towhee_projects/towhee-test-env/lib/python3.8/site-packages/torch/autocast_mode.py:141: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/binbin/Towhee_projects/towhee-test-env/lib/python3.8/site-packages/towhee/__init__.py", line 73, in __call__
out_df = self._pipeline(in_df)
File "/Users/binbin/Towhee_projects/towhee-test-env/lib/python3.8/site-packages/towhee/engine/pipeline.py", line 91, in __call__
return graph_ctx.result()
File "/Users/binbin/Towhee_projects/towhee-test-env/lib/python3.8/site-packages/towhee/engine/graph_context.py", line 76, in result
raise RuntimeError('Unkown error')
RuntimeError: Unkown error
from towhee.
This is an issue of exception handling in the Towhee framework. In the feature, we will add some specific exception types. Now they are all runtime exceptions. In the latter case without results, it will throw NoDataException.
BTW, Towhee will throw some error conditions through exceptions in v1.0. And the users for the pipeline can decide how to deal with the exception after catching the exception.
from towhee.
OK, and the error reported which is not specific and friendly is actually another issue.
This issue which I means is I want the logo image could be embedded successfully. But through discussion, this model is not supported this logo image, and which is not the pipeline issue.
And embedding is successfully when replacing a cat image, so close it.
Thanks.
from towhee.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Close the stale issues and pull requests after 7 days of inactivity. Reopen the issue with /reopen
.
from towhee.
Related Issues (20)
- [Bug]: image color of DataCollection output was wrong. HOT 4
- [Feature]: AWS Lambda support | pre download model or specify the path where the models will be downloaded HOT 6
- [DesignProposal]: we need offline mode HOT 1
- [Bug]: 在多次使用 pipeline('towhee/audio-embedding-vggish') 时发生内存泄漏 HOT 11
- [Bug]: ValidationError: 101 validation errors for PointStruct vector -> 0 value is not a valid float (type=type_error.float) HOT 5
- RuntimeError: Loading operator with error:Load operator failed HOT 2
- [Bug]: 您好,我想请问一下,通过 towhee 的 vggish 模型得到音频向量后,通过什么方法计算两个音频向量的相似度?dtw吗? HOT 6
- [Feature]: Can it load the model locally? 可以本地加载本地模型吗? HOT 18
- [Bug]: RuntimeError: error checking inheritance of Ellipsis (type: ellipsis) HOT 2
- [Bug]: How to actively release video memory HOT 2
- Embedding模型加载失败 HOT 12
- [Bug]: Error: Start the triton server HOT 11
- [Bug]: application cannot start. `from towhee import AutoPipes` crashes HOT 4
- [Bug]: AutoPipes.pipeline('sentence_embedding', config=config) failed at pydantic 2.5.x HOT 10
- [Bug]: ImportError: cannot import name 'AutoPipes' from partially initialized module 'towhee' (most likely due to a circular import) HOT 2
- [Bug]: RuntimeError: Loading operator with error:Load operator failed HOT 9
- [Bug]: Triton in Towhee example fails in latest versions of Tritonserver HOT 3
- [Feature]: How to Release GPU Memory Occupation HOT 2
- [Enhancement]: HTTP API should support posting video / image files to compute embeddings and other operations. HOT 2
- [Bug]: When building the triton backend, using custom operators may result in errors HOT 4
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 towhee.