Playful interface for the COCO dataset.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Ruben van de Ven 7cab85653c
style changes
2 years ago
coco WIP backgrounds 3 years ago
www style changes 2 years ago
README.md Version with save option 3 years ago
coco.sql Version with save option 3 years ago
create_shapes.py WIP backgrounds 3 years ago
generate_lonely_segments.py First version 3 years ago
plottingdata_coco.service Systemd service file to new user and dir 3 years ago
requirements.txt publication changes 2 years ago
server.py font-sizing 3 years ago
tools.py publication changes 2 years ago

README.md

server.py
Server for the web interface
create_shapes.py
Create an svg file per image, with classes on the shapes according to their classes
zoom_animation.py
Create svg frames for a category. Ordered by the area of the shapes.
generate_lonely_segments.py
Find and download the images with only one object in them.
tools.py
Turn a COCO json file (eg instances_val2017.json) into a database format (eg coco_train.db)

Build array of images sorted by size:

python zoom_animation.py --annotations ../../datasets/COCO/annotations/instances_train2017.json --output zoom --category_id 18

Turn into png

cd zoom/dog
for file in *.svg; do inkscape -z -f "${file}" -w 640 -e "../dog_png/${file}.png"; done

Turn png into mp4

cd ../dog_png
#ffmpeg -r 1 -i %d_*.png -pix_fmt yuv420p bloch2.mp4
ffmpeg -f image2 -pattern_type glob -i '*.png' ../dog.mp4

To run as server:

cp plottingdata_coco.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable plottingdata_coco.service
systemctl start plottingdata_coco.service
rsync . --exclude zoom --exclude venv --exclude archive -av here.rubenvandeven.com:/home/ruben/coco/  --exclude shapes --exclude lonely --exclude .git --exclude __pycache__ --info progress2