Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
0da8db17
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
大约 1 年 前同步成功
通知
115
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0da8db17
编写于
8月 17, 2022
作者:
R
root
提交者:
Tingquan Gao
8月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: rm sys.path.append in main python file
上级
581f6a0e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
25 addition
and
46 deletion
+25
-46
deploy/python/build_gallery.py
deploy/python/build_gallery.py
+4
-8
deploy/python/predict_det.py
deploy/python/predict_det.py
+9
-15
deploy/python/predict_rec.py
deploy/python/predict_rec.py
+5
-10
deploy/python/predict_system.py
deploy/python/predict_system.py
+7
-13
未找到文件。
deploy/python/build_gallery.py
浏览文件 @
0da8db17
...
...
@@ -12,10 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
import
cv2
import
faiss
...
...
@@ -23,10 +19,10 @@ import numpy as np
from
tqdm
import
tqdm
import
pickle
from
p
ython.predict_rec
import
RecPredictor
from
utils
import
logge
r
from
utils
import
config
from
p
addleclas.deploy.utils
import
logger
,
config
from
paddleclas.deploy.utils.predictor
import
Predictor
from
paddleclas.deploy.python.predict_rec
import
RecPredicto
r
from
paddleclas.deploy.python.predict_rec
import
RecPredictor
def
split_datafile
(
data_file
,
image_root
,
delimiter
=
"
\t
"
):
...
...
deploy/python/predict_det.py
浏览文件 @
0da8db17
...
...
@@ -11,29 +11,23 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
from
utils
import
logger
from
utils
import
config
from
utils.predictor
import
Predictor
from
utils.get_image_list
import
get_image_list
from
det_preprocess
import
det_preprocess
from
preprocess
import
create_operators
import
os
import
argparse
import
time
from
functools
import
reduce
import
yaml
import
ast
from
functools
import
reduce
import
cv2
import
numpy
as
np
import
cv2
import
paddle
from
paddleclas.deploy.utils
import
logger
,
config
from
paddleclas.deploy.utils.predictor
import
Predictor
from
paddleclas.deploy.utils.get_image_list
import
get_image_list
from
paddleclas.deploy.python.preprocess
import
create_operators
from
paddleclas.deploy.python.det_preprocess
import
det_preprocess
class
DetPredictor
(
Predictor
):
def
__init__
(
self
,
config
):
...
...
deploy/python/predict_rec.py
浏览文件 @
0da8db17
...
...
@@ -12,20 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
import
cv2
import
numpy
as
np
from
utils
import
logger
from
utils
import
config
from
utils.predictor
import
Predictor
from
utils.get_image_list
import
get_image_list
from
preprocess
import
create_operators
from
postprocess
import
build_postprocess
from
paddleclas.deploy.utils
import
logger
,
config
from
paddleclas.deploy.utils.predictor
import
Predictor
from
paddleclas.deploy.utils.get_image_list
import
get_image_list
from
paddleclas.deploy.python.preprocess
import
create_operators
from
paddleclas.deploy.python.postprocess
import
build_postprocess
class
RecPredictor
(
Predictor
):
...
...
deploy/python/predict_system.py
浏览文件 @
0da8db17
...
...
@@ -12,24 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
import
copy
import
cv2
import
numpy
as
np
import
cv2
import
faiss
import
pickle
from
python.predict_rec
import
RecPredictor
from
python.predict_det
import
DetPredictor
from
utils
import
logger
from
utils
import
config
from
utils.get_image_list
import
get_image_list
from
utils.draw_bbox
import
draw_bbox_results
from
paddleclas.deploy.utils
import
logger
,
config
from
paddleclas.deploy.utils.get_image_list
import
get_image_list
from
paddleclas.deploy.utils.draw_bbox
import
draw_bbox_results
from
paddleclas.deploy.python.predict_rec
import
RecPredictor
from
paddleclas.deploy.python.predict_det
import
DetPredictor
class
SystemPredictor
(
object
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录