Comments (2)
我使用anaconda创建了一个python3.9的虚拟环境,该环境放置在名为env的文件夹中。另外GitHub上下载的PaddleClas代码文件与env文件夹同级,在参考链接https://github.com/PaddlePaddle/PaddleClas/blob/release/2.5/docs/zh_CN/models/PP-ShiTu/README.md的教程后创建了paddleclas库,该库与PaddleClas文件夹下paddleclas.py文件同名,在“执行命令体验索引库构建”的时候会造成“circular import”错误,建议修改一下paddleclas.py文件名(项目经验较少,想法如有错误请多多包含)。
(D:\Programme\Projects\pp_shitu\python) D:\Programme\Projects\pp_shitu\PaddleClas>python paddleclas.py --build_gallery=True --model_name="PP-ShiTuV2" -o IndexProcess.image_root=./drink_dataset_v2.0/gallery/ -o IndexProcess.index_dir=./drink_dataset_v2.0/index -o IndexProcess.data_file=./drink_dataset_v2.0/gallery/drink_label.txt
Traceback (most recent call last):
File "D:\Programme\Projects\pp_shitu\PaddleClas\paddleclas.py", line 44, in
from deploy.python.predict_cls import ClsPredictor
File "D:\Programme\Projects\pp_shitu\PaddleClas\deploy\python\predict_cls.py", line 20, in
from paddleclas.deploy.utils import logger, config
File "D:\Programme\Projects\pp_shitu\PaddleClas\paddleclas.py", line 44, in
from deploy.python.predict_cls import ClsPredictor
ImportError: cannot import name 'ClsPredictor' from partially initialized module 'deploy.python.predict_cls' (most likely due to a circular import) (D:\Programme\Projects\pp_shitu\PaddleClas\deploy\python\predict_cls.py)
from paddleclas.
您的经验我们会考虑采纳,感谢提问
from paddleclas.
Related Issues (20)
- 训练SwinTransformer模型,loss不下降 HOT 9
- 二分类训练评估时如何输出,正样本的精确率、召回率以及f1-score HOT 1
- PaddleClas支持龙芯吗 HOT 1
- 关于特征提取后进行feature_normalize的疑问 HOT 3
- 您好,是否能提供MixFormer的源码? HOT 3
- 缺少PULC_table_attribute.md文档 HOT 2
- 在进行训练时如果自己真实数据样本没有翻转的情况,数据增强RandFlipImage是不是可以不加 HOT 1
- 图片分类训练时报错 HOT 1
- 关于tripletangularmarginloss.py中的负样本类距离loss计算absolut_loss_an HOT 13
- 请问 paddleClas适合会计票据的分类吗 HOT 2
- 使用Python命令索引库如何更新 HOT 4
- list index out of range的原因是?
- 使用PPLCNetV2_base_ShiTu模型,在GPU上运行加速效果不明显 HOT 1
- PaddleClas,图像识别部署,根据2.5文档服务化部署预测过程中出现报错 HOT 4
- 一张图片中两行文字发生了折叠,如果有文字发生折叠的图片和文字未发生折叠的图片,用哪一个分类模型效果会好一些? HOT 4
- PaddleClas 如何实现模型在train 以及 infer 的时候使用不同分支的forword HOT 1
- KeyError: 'save_infer_model/scale_0.tmp_1.lod' HOT 1
- PPLCNetV2_base_ShiTu模型增加图片的分辨率跟输出的维数会增加检索精度吗? HOT 1
- Direct prediction API HOT 1
- 关于paddleClas和paddlepaddle版本的问题 HOT 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 paddleclas.