Skip to content

Commit

Permalink
Uploaded modanet files on my repo and closes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
cad0p committed Sep 2, 2019
1 parent 841722a commit c35594b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions maskrcnn_modanet/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def download(path):
https://github.com/kyamagu/paperdoll/tree/master/data/chictopia
''')

failure = os.system("sh " + dir_pkg_path + "download.sh '" + path + "' " + str(fast_download) )
failure = os.system("bash " + dir_pkg_path + "download.sh '" + path + "' " + str(fast_download) )

if failure:
if failure == 1:
print('Bash script failed. Run again this command after having downloaded the necessary packages')
exit()

Expand Down
10 changes: 10 additions & 0 deletions maskrcnn_modanet/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ echo $text
# download images annotations
git clone https://github.com/eBay/modanet.git

cd modanet
cd annotations

wget -O modanet2018_instances_train.json https://github.com/cad0p/maskrcnn-modanet/releases/download/v1.0.3/modanet2018_instances_train.json

wget -O modanet2018_instances_val.json https://github.com/cad0p/maskrcnn-modanet/releases/download/v1.0.3/modanet2018_instances_val.json

cd ..
cd ..


mkdir coco #this will be our dataset final folder
cd coco
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

setuptools.setup(
name='maskrcnn-modanet',
version='1.0.2.1',
version='1.0.3',
# scripts=[
# 'maskrcnn_modanet/cli/main.py'
# 'maskrcnn_modanet/download.sh'
# ],
author="Pier Carlo Cadoppi",
author_email="[email protected]",
Expand Down Expand Up @@ -42,6 +42,8 @@
'console_scripts': [
'maskrcnn-modanet=maskrcnn_modanet.cli.main:main',
],
}
},
include_package_data=True,
zip_safe=False

)

0 comments on commit c35594b

Please sign in to comment.