-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add voc2012 dataset for image segment #2785
Conversation
python/paddle/v2/dataset/voc_seg.py
Outdated
import tarfile | ||
import io | ||
import numpy as np | ||
from common import download |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
common
是否应为 paddle.v2.dataset.common
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx.
python/paddle/v2/dataset/voc_seg.py
Outdated
""" | ||
Create a train dataset reader containing 2913 images in HWC order. | ||
""" | ||
return reader_creator(download(VOC_URL, 'voc_seg', VOC_MD5), 'trainval') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个数据集好像不只是包含了分割任务的数据,是否更改下缓存目录的名字'voc_seg'会好些,其他任务的数据也可以使用
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTGM. And please to resolve conflicts.
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import paddle.v2.dataset.voc_seg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PEP8 style https://www.python.org/dev/peps/pep-0008/#package-and-module-names says:
Modules should have short, all-lowercase names. Underscores can be used in the module name if it improves readability.
Here the underscore doesn't really improve the readability, how about naming it voc2012
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. I have renamed it to voc2012.
@qingqing01 I have resolved conflicts. |
fix #2784