tag:blogger.com,1999:blog-33154022688096785222023-11-15T09:30:27.569-08:00我的雜個人網誌SCSonichttp://www.blogger.com/profile/03009526528953733571noreply@blogger.comBlogger1125truetag:blogger.com,1999:blog-3315402268809678522.post-59184498239072479852021-03-07T19:59:00.003-08:002021-03-08T16:45:57.210-08:00<h2 id="oppai-hq-dataset-ophq">Oppai-HQ Dataset (OPHQ)</h2>
<p><embed src="https://img.shields.io/badge/python-3.6-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/license-CC-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/format-JPG-green.svg?style=flat_square"></embed></p>
<p><embed src="https://img.shields.io/badge/Resolution-128x128-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/Resolution-200x200-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/Resolution-256x256-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/Resolution-512x512-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/Resolution-1024x1024-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/images-17,000-green.svg?style=flat_square"></embed><br /><embed src="https://img.shields.io/badge/image_size-51gb-green.svg?style=flat_square"></embed><br /><img alt="Teaser image" src="https://github.com/gg46power/Oppai-dataset/raw/master/media/grid2.png" /></p>
<p>Oppai-HQ (OppaiHQ) is a high-quality image dataset of human breasts, originally created for object-detection.</p>
<p>The dataset consists of 17K+, 73GB+ flickr image links from 200x200 to 1024x1024 or larger resolution.</p>
<p>The images were crawled from <a href="https://www.flickr.com/">Flickr</a>, all image has a voc format, data augmentation using download_oppai.py.</p>
<blockquote>
</blockquote>
<h4 id="gan-demo">Gan-Demo:</h4>
<p><img alt="Teaser image" src="https://github.com/gg46power/Oppai-dataset/raw/master/media/gan_result.gif" /></p>
<blockquote>
<p>Watch Live Gan: <a href="https://scsonic.com/OppaiDaily/">http://scsonic.com/OppaiDaily/</a></p>
</blockquote>
<h4 id="live-object-decetion-app-demo">Live Object-Decetion App Demo:</h4>
<blockquote>
<p>** OppaiCamera, realtime breast-argumentation camera app.<br /> (you can try select <code>Fall in love</code> stick)<br /><a href="https://itunes.apple.com/us/app/oppaicamera/id1382270395?l=zh&ls=1&mt=8">https://itunes.apple.com/us/app/oppaicamera/id1382270395?l=zh&ls=1&mt=8</a></p>
</blockquote>
<p>For pre-train ai-model inquiries, please contact <script type="text/javascript">
<!--
h='gmail.com';a='@';n='gg46power';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'glenn'+'<\/'+'a'+'>');
// -->
</script><noscript>glenn (gg46power at gmail dot com)</noscript> and <script type="text/javascript">
<!--
h='gmail.com';a='@';n='scsonic';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'<script type="text/javascript">
<!--
h='gmail.com';a='@';n='scsonic';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
// -->
</script><noscript>scsonic at gmail dot com</noscript>'+'<\/'+'a'+'>');
// -->
</p><noscript><script type="text/javascript"> <!-- h='gmail.com';a='@';n='scsonic';e=n+a+h; document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>'); // --> </script><noscript>scsonic at gmail dot com</noscript> (scsonic at gmail dot com)</noscript>
<h2 id="licenses">Licenses</h2>
<p>The individual images were published in Flickr by their respective authors under</p>
<ul>
<li>All Rights Reserved<br /></li>
<li><a href="https://creativecommons.org/licenses/by/2.0/"></a><a href="https://creativecommons.org/licenses/by/2.0/">https://creativecommons.org/licenses/by/2.0/</a><br /></li>
<li><a href="https://creativecommons.org/licenses/by-nc/2.0/"></a><a href="https://creativecommons.org/licenses/by-nc/2.0/">https://creativecommons.org/licenses/by-nc/2.0/</a><br /></li>
<li><a href="https://creativecommons.org/publicdomain/mark/1.0/"></a><a href="https://creativecommons.org/publicdomain/mark/1.0/">https://creativecommons.org/publicdomain/mark/1.0/</a><br /></li>
<li><a href="https://creativecommons.org/publicdomain/zero/1.0/"></a><a href="https://creativecommons.org/publicdomain/zero/1.0/">https://creativecommons.org/publicdomain/zero/1.0/</a><br /></li>
<li><a href="http://www.usa.gov/copyright.shtml"></a><a href="http://www.usa.gov/copyright.shtml">http://www.usa.gov/copyright.shtml</a></li>
</ul>
<p>The license and original author of each image are indicated in the metadata, can be output with download script.</p>
<p>The dataset itself (including SQLite database, download script, and documentation) is made available under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons BY-NC-SA 4.0</a> license by Oppai-HQ Organization. You can <strong>use, redistribute, and adapt it for non-commercial purposes</strong>, as long as you (a) give appropriate credit by <strong>citing our paper</strong>, (b) <strong>indicate any changes</strong> that you've made, and (c) distribute any derivative works <strong>under the same license</strong>.</p>
<ul>
<li><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"></a><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">https://creativecommons.org/licenses/by-nc-sa/4.0/</a></li>
</ul>
<h2 id="overview">Overview</h2>
<p>the database db file is hosted on Git and can be download from Flickr with python.</p>
<p>High-level statistics:<br /><img alt="Pie charts" src="./media/oppai_chart.png" /></p>
<p>We used this database for gan training, using <a href="https://arxiv.org/abs/1812.04948">StyleGAN paper</a>, the result in <a href="http://scsonic/OppaiDaily">OppaiDaily</a>, with your help we can train batter.<br /><img alt="Help" src="./media/oppai_donate.png" /></p>
<h2 id="download-script">Download script</h2>
<p>You can either grab the data directly from Flickr or use the provided <a href="download_oppai.py">download script</a>. The script makes things considerably easier by automatically downloading all the requested files, download error handle, etc.<br />all data from flickr from image file.</p>
<h2 id="create-by-oppai-hq-organization">Create BY Oppai-HQ Organization</h2>
<ul>
<li>Glenn George (<script type="text/javascript">
<!--
h='gmail.com';a='@';n='gg46power';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
// -->
</script><noscript>gg46power at gmail dot com</noscript>)<br /></li>
<li>William Collins<br /></li>
<li>Kiyota Shukishi<br /></li>
<li>Evan Kuo</li>
</ul>
<pre><code>> python download_oppai.py
Download Oppai-HQ Start ... using db: oppai.db
Total images count = 17884
Total size= 73.62 GB
[ 1/17884] [Download] https://live.staticflickr.com/973/40799618995_127d6efd7f_o.jpg 4.57 MB
[ 2/17884] [Download] https://live.staticflickr.com/871/27830051978_fd84307546_o.jpg 2.93 MB
[ 3/17884] [Download] https://live.staticflickr.com/969/27830050398_4e5f3da1d2_o.jpg 2.04 MB
....
> python download_oppai.py -h
usage: download_oppai.py [-h] [-c CROP] [-x XML] [-t TEST] [-d DB_FILENAME]
Download Oppai-HQ dataset to current working directory.
optional arguments:
-h, --help show this help message and exit
-c CROP, --crop CROP default=1, enable crop bbox image to crop directory
-x XML, --xml XML default=1, create voc xml file to xml directory
-t TEST, --test TEST test script, Skip Image Download
-d DB, --db DB database path, default=oppai.db
</code></pre>
<h2 id="sqlite-database">SQLite Database</h2>
<p>The <code>oppai.db</code> file contains the following information for each image in a machine-readable, sqlite3 format:</p>
<pre><code>Table OppaiDB:
id | image_id | url | filename | size | width | height | t | l | w | h
image_id: image id or None
url: image download url
filename: image default file name
size: image size in bytes
width: image width
height: image height
t, l, w, h: Bounding Box Annotations, Top, Left, Width ,Height
</code></pre>
<h2 id="acknowledgements">Acknowledgements</h2>
<p>Thanks Nvidia, Tensorflow,<br />Thanks Flickr <a href="https://www.flickr.com/services/api/">Flickr API</a><br />Thanks <a href="https://github.com/NVlabs/ffhq-dataset">FFHQ-Dataset</a></p>
<h2 id="privacy">Privacy</h2>
<p>To get your photo removed from the Oppai-HQ dataset:<br />Contact <script type="text/javascript">
<!--
h='gmail.com';a='@';n='gg46power';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'glenn'+'<\/'+'a'+'>');
// -->
</script><noscript>glenn (gg46power at gmail dot com)</noscript>. Please include your Flickr username or image links in the email.<br />We will check the photos from the user and update the dataset.</p>
SCSonichttp://www.blogger.com/profile/03009526528953733571noreply@blogger.com3