GithubHelp home page GithubHelp logo

Comments (3)

Chiiizzzy avatar Chiiizzzy commented on August 10, 2024 3

run demo example abnormal. `from towhee import pipe, ops, DataCollection

if name == 'main': p = ( pipe.input('text') .map('text', 'vec', ops.text_embedding.dpr(model_name='facebook/dpr-ctx_encoder-single-nq-base')) .output('text', 'vec') )

DataCollection(p('Hello, world.')).show()`

Traceback (most recent call last): File "F:/Project/towhee_test/main.py", line 7, in .output('text', 'vec') File "E:\Anaconda3\envs\towhee_env\lib\site-packages\towhee\runtime\pipeline.py", line 103, in output dag_dict = deepcopy(self._dag) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 150, in deepcopy y = copier(x, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 241, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 150, in deepcopy y = copier(x, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 241, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 150, in deepcopy y = copier(x, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 241, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 180, in deepcopy y = _reconstruct(x, memo, *rv) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 281, in _reconstruct state = deepcopy(state, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 150, in deepcopy y = copier(x, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 241, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "E:\Anaconda3\envs\towhee_env\lib\copy.py", line 169, in deepcopy rv = reductor(4) TypeError: can't pickle _thread.lock objects

Process finished with exit code 1

Are you using towhee <= 0.9? If so, please import pipe and ops from dc2:
from towhee.dc2 import pipe, ops, DataCollection

from examples.

Shiftwa avatar Shiftwa commented on August 10, 2024

flet-dev/flet#565

from examples.

LemonSqi avatar LemonSqi commented on August 10, 2024

this problem is solved, thanks a lot~!

from examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.