Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
cfd87707
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
282
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cfd87707
编写于
4月 29, 2020
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add balloon dataset
上级
a8c87185
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
15 addition
and
22 deletion
+15
-22
demo/object_detection/test/balloon1.jpg
demo/object_detection/test/balloon1.jpg
+0
-0
demo/object_detection/test/balloon2.jpg
demo/object_detection/test/balloon2.jpg
+0
-0
demo/object_detection/test/test.txt
demo/object_detection/test/test.txt
+0
-2
demo/object_detection/test/test.yml
demo/object_detection/test/test.yml
+0
-6
demo/object_detection/test/test_img_bird.jpg
demo/object_detection/test/test_img_bird.jpg
+0
-0
demo/object_detection/test/test_img_cat.jpg
demo/object_detection/test/test_img_cat.jpg
+0
-0
demo/object_detection/test/test_img_daisy.jpg
demo/object_detection/test/test_img_daisy.jpg
+0
-0
demo/object_detection/test/test_img_roses.jpg
demo/object_detection/test/test_img_roses.jpg
+0
-0
demo/object_detection/test/test_img_sheep.jpg
demo/object_detection/test/test_img_sheep.jpg
+0
-0
paddlehub/dataset/__init__.py
paddlehub/dataset/__init__.py
+1
-1
paddlehub/dataset/balloon.py
paddlehub/dataset/balloon.py
+14
-13
未找到文件。
demo/object_detection/test/balloon1.jpg
0 → 100755
浏览文件 @
cfd87707
1.7 MB
demo/object_detection/test/balloon2.jpg
0 → 100755
浏览文件 @
cfd87707
652.4 KB
demo/object_detection/test/test.txt
已删除
100644 → 0
浏览文件 @
a8c87185
IMAGE_PATH
./resources/test/test_img_bird.jpg
demo/object_detection/test/test.yml
已删除
100644 → 0
浏览文件 @
a8c87185
input_data
:
image
:
type
:
IMAGE
key
:
IMAGE_PATH
config
:
top_only
:
True
demo/object_detection/test/test_img_bird.jpg
已删除
100644 → 0
浏览文件 @
a8c87185
13.1 KB
demo/object_detection/test/test_img_cat.jpg
已删除
100644 → 0
浏览文件 @
a8c87185
421.9 KB
demo/object_detection/test/test_img_daisy.jpg
已删除
100644 → 0
浏览文件 @
a8c87185
48.0 KB
demo/object_detection/test/test_img_roses.jpg
已删除
100644 → 0
浏览文件 @
a8c87185
92.1 KB
demo/object_detection/test/test_img_sheep.jpg
已删除
100644 → 0
浏览文件 @
a8c87185
32.2 KB
paddlehub/dataset/__init__.py
浏览文件 @
cfd87707
...
@@ -37,4 +37,4 @@ from .flowers import FlowersDataset as Flowers
...
@@ -37,4 +37,4 @@ from .flowers import FlowersDataset as Flowers
from
.stanford_dogs
import
StanfordDogsDataset
as
StanfordDogs
from
.stanford_dogs
import
StanfordDogsDataset
as
StanfordDogs
from
.food101
import
Food101Dataset
as
Food101
from
.food101
import
Food101Dataset
as
Food101
from
.indoor67
import
Indoor67Dataset
as
Indoor67
from
.indoor67
import
Indoor67Dataset
as
Indoor67
from
.
coco10
import
Coco10
from
.
balloon
import
Balloon
paddlehub/dataset/
coco10
.py
→
paddlehub/dataset/
balloon
.py
浏览文件 @
cfd87707
...
@@ -23,18 +23,19 @@ import paddlehub as hub
...
@@ -23,18 +23,19 @@ import paddlehub as hub
from
paddlehub.dataset.base_cv_dataset
import
ObjectDetectionDataset
from
paddlehub.dataset.base_cv_dataset
import
ObjectDetectionDataset
class
Coco10
(
ObjectDetectionDataset
):
class
Balloon
(
ObjectDetectionDataset
):
def
__init__
(
self
,
model_type
=
'ssd'
):
def
__init__
(
self
,
model_type
=
'ssd'
):
dataset_path
=
os
.
path
.
join
(
hub
.
common
.
dir
.
DATA_HOME
,
"
coco_10
"
)
dataset_path
=
os
.
path
.
join
(
hub
.
common
.
dir
.
DATA_HOME
,
"
balloon
"
)
#
self.base_path = self._download_dataset(
self
.
base_path
=
self
.
_download_dataset
(
#
dataset_path=dataset_path,
dataset_path
=
dataset_path
,
# url="https://bj.bcebos.com/paddlehub-dataset/dog-cat
.tar.gz")
url
=
"https://bj.bcebos.com/paddlehub-dataset/balloon
.tar.gz"
)
base_path
=
dataset_path
base_path
=
dataset_path
train_image_dir
=
'val'
train_image_dir
=
'JPEGImages'
train_list_file
=
'annotations/val.json'
train_list_file
=
'train.json'
validate_image_dir
=
'val'
validate_image_dir
=
'JPEGImages'
validate_list_file
=
'annotations/val.json'
validate_list_file
=
'val.json'
test_image_dir
=
'val'
test_image_dir
=
'JPEGImages'
test_list_file
=
'annotations/val.json'
test_list_file
=
'val.json'
super
(
Coco10
,
self
).
__init__
(
base_path
,
train_image_dir
,
train_list_file
,
validate_image_dir
,
validate_list_file
,
super
(
Balloon
,
self
).
__init__
(
test_image_dir
,
test_list_file
,
model_type
)
base_path
,
train_image_dir
,
train_list_file
,
validate_image_dir
,
validate_list_file
,
test_image_dir
,
test_list_file
,
model_type
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录