examples
examples copied to clipboard
Analyze the unstructured data with Towhee, such as reverse image search, reverse video search, audio classification, question and answer systems, molecular search, etc.
May I ask how to ensure that the model is only loaded once when extracting feature vectors, instead of loading the model once every time it is called? Could you...
There is an error when I use clip to load the local model, my code is as follows: .map('img', 'vec', ops.image_text_embedding.clip(model_name='clip_vit_base_patch16', modality='image', checkpoint_path='./model/clip-vit-base-patch16/pytorch_model.bin'). The error that occurs is as follows:...
在 p_embed = ( pipe.input('src') .flat_map('src', 'img_path', load_image) .map('img_path', 'img', ops.image_decode()) .map('img', 'vec', ops.image_embedding.timm(model_name=MODEL, device=DEVICE)) ) 现在我有一个行人重识别的模型,在这里我需要怎么样做,才能替换为自己的模型。非常期待您的回复,感谢!
2023-08-03 14:01:57,823 - 139852063110912 - image_decode_cv2.py-image_decode_cv2:40 - ERROR: Download image from http://*******904d20239a385ec9.jpg failed, error msg: {"Code":"NoSuchURL","Msg":"The specified URL does not exist."}, request code: 404 2023-08-03 14:01:57,823 - 139852063110912 - image_decode_cv2.py-image_decode_cv2:68...
https://github.com/towhee-io/examples/blob/main/image/text_image_search/2_deep_dive_text_image_search.ipynb 此demo教程中,运行 #step3 #train your model clip_op.train(data_args=data_args, training_args=training_args, model_args=model_args) 抛错: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[11], line 3 1 #step3 2 #train your model ----> 3 clip_op.train(data_args=data_args,...
https://github.com/towhee-io/examples/blob/main/image/image_animation/example.ipynb 
 文本检索的模型,在执行如图所示的操作时,整个系统没有任何相应,CPU、硬盘、网络资源都没有被使用,整个程序就卡在这里,想问一下这个方法里边封装的哪个方法会特别耗时?
  I often encounter the problem shown in the above picture. Is it caused by network fluctuations?
"Why does modifying the value of limit while building the search pipeline not change the number of results returned when using the DataCollection(res).show() function?"
 When i configured the environment, i copy the code and still get zero results? i don't know...how to say.. i am performing the operation to insert the vector into...