├── .gitignore ├── .node-version ├── .python-version ├── .travis.yml ├── LICENSE ├── README.md ├── backend ├── .gitignore ├── Dockerfile ├── README.md ├── SPADE │ ├── data │ │ └── pix2pix_dataset.py │ ├── hacksc.py │ ├── labels.md │ ├── options │ │ └── base_options.py │ ├── test.py │ └── util │ │ └── visualizer.py ├── color_grey_conversion │ ├── __init__.py │ ├── color_to_grey.py │ ├── label_to_rgb │ └── labels.md ├── convert_to_grey.sh ├── data │ ├── __init__.py │ ├── ade20k_dataset.py │ ├── base_dataset.py │ ├── cityscapes_dataset.py │ ├── coco_dataset.py │ ├── custom_dataset.py │ ├── facades_dataset.py │ ├── image_folder.py │ └── pix2pix_dataset.py ├── dataset │ ├── val_img │ │ └── greyscale.png │ ├── val_inst │ │ └── greyscale.png │ └── val_label │ │ └── greyscale.png ├── gcp │ ├── build.sh │ ├── deploy.sh │ └── services_down.sh ├── grey.png ├── hacksc.py ├── img │ ├── color.png │ ├── greyscale.png │ └── loading.gif ├── label_to_grey.json ├── labels.txt ├── models │ ├── __init__.py │ ├── networks │ │ ├── __init__.py │ │ ├── architecture.py │ │ ├── base_network.py │ │ ├── discriminator.py │ │ ├── encoder.py │ │ ├── generator.py │ │ ├── loss.py │ │ ├── normalization.py │ │ └── sync_batchnorm │ │ │ ├── __init__.py │ │ │ ├── batchnorm.py │ │ │ ├── batchnorm_reimpl.py │ │ │ ├── comm.py │ │ │ ├── replicate.py │ │ │ └── unittest.py │ └── pix2pix_model.py ├── options │ ├── __init__.py │ ├── base_options.py │ ├── test_options.py │ └── train_options.py ├── purge.sh ├── requirements.txt ├── results │ └── coco_pretrained │ │ └── test_latest │ │ ├── images │ │ ├── input_label │ │ │ └── greyscale.png │ │ └── synthesized_image │ │ │ └── greyscale.png │ │ └── index.html ├── rgb_to_label.json ├── server.py ├── static │ ├── color-picker.css │ ├── drawingboard.min.css │ ├── drawingboard.min.js │ ├── image1.png │ ├── image2.png │ ├── image3.png │ ├── image4.png │ ├── image5.png │ ├── image6.png │ ├── index.js │ └── style.css ├── templates │ ├── gallery.html │ └── index.html ├── test.py ├── trainers │ ├── __init__.py │ └── pix2pix_trainer.py ├── util │ ├── __init__.py │ ├── coco.py │ ├── html.py │ ├── iter_counter.py │ ├── util.py │ └── visualizer.py └── web-server.py └── docs ├── HACKATHON-README.md ├── colorstandard.txt ├── paper.txt └── promo.png /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/.gitignore -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | 10.9.0 2 | 3 | -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.6.3 2 | 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/README.md -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/.gitignore -------------------------------------------------------------------------------- /backend/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/Dockerfile -------------------------------------------------------------------------------- /backend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/README.md -------------------------------------------------------------------------------- /backend/SPADE/data/pix2pix_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/SPADE/data/pix2pix_dataset.py -------------------------------------------------------------------------------- /backend/SPADE/hacksc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/SPADE/hacksc.py -------------------------------------------------------------------------------- /backend/SPADE/labels.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/SPADE/labels.md -------------------------------------------------------------------------------- /backend/SPADE/options/base_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/SPADE/options/base_options.py -------------------------------------------------------------------------------- /backend/SPADE/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/SPADE/test.py -------------------------------------------------------------------------------- /backend/SPADE/util/visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/SPADE/util/visualizer.py -------------------------------------------------------------------------------- /backend/color_grey_conversion/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/color_grey_conversion/color_to_grey.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/color_grey_conversion/color_to_grey.py -------------------------------------------------------------------------------- /backend/color_grey_conversion/label_to_rgb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/color_grey_conversion/label_to_rgb -------------------------------------------------------------------------------- /backend/color_grey_conversion/labels.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/color_grey_conversion/labels.md -------------------------------------------------------------------------------- /backend/convert_to_grey.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/convert_to_grey.sh -------------------------------------------------------------------------------- /backend/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/__init__.py -------------------------------------------------------------------------------- /backend/data/ade20k_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/ade20k_dataset.py -------------------------------------------------------------------------------- /backend/data/base_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/base_dataset.py -------------------------------------------------------------------------------- /backend/data/cityscapes_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/cityscapes_dataset.py -------------------------------------------------------------------------------- /backend/data/coco_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/coco_dataset.py -------------------------------------------------------------------------------- /backend/data/custom_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/custom_dataset.py -------------------------------------------------------------------------------- /backend/data/facades_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/facades_dataset.py -------------------------------------------------------------------------------- /backend/data/image_folder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/image_folder.py -------------------------------------------------------------------------------- /backend/data/pix2pix_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/data/pix2pix_dataset.py -------------------------------------------------------------------------------- /backend/dataset/val_img/greyscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/dataset/val_img/greyscale.png -------------------------------------------------------------------------------- /backend/dataset/val_inst/greyscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/dataset/val_inst/greyscale.png -------------------------------------------------------------------------------- /backend/dataset/val_label/greyscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/dataset/val_label/greyscale.png -------------------------------------------------------------------------------- /backend/gcp/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/gcp/build.sh -------------------------------------------------------------------------------- /backend/gcp/deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/gcp/deploy.sh -------------------------------------------------------------------------------- /backend/gcp/services_down.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/gcp/services_down.sh -------------------------------------------------------------------------------- /backend/grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/grey.png -------------------------------------------------------------------------------- /backend/hacksc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/hacksc.py -------------------------------------------------------------------------------- /backend/img/color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/img/color.png -------------------------------------------------------------------------------- /backend/img/greyscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/img/greyscale.png -------------------------------------------------------------------------------- /backend/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/img/loading.gif -------------------------------------------------------------------------------- /backend/label_to_grey.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/label_to_grey.json -------------------------------------------------------------------------------- /backend/labels.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/labels.txt -------------------------------------------------------------------------------- /backend/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/__init__.py -------------------------------------------------------------------------------- /backend/models/networks/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/__init__.py -------------------------------------------------------------------------------- /backend/models/networks/architecture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/architecture.py -------------------------------------------------------------------------------- /backend/models/networks/base_network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/base_network.py -------------------------------------------------------------------------------- /backend/models/networks/discriminator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/discriminator.py -------------------------------------------------------------------------------- /backend/models/networks/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/encoder.py -------------------------------------------------------------------------------- /backend/models/networks/generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/generator.py -------------------------------------------------------------------------------- /backend/models/networks/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/loss.py -------------------------------------------------------------------------------- /backend/models/networks/normalization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/normalization.py -------------------------------------------------------------------------------- /backend/models/networks/sync_batchnorm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/sync_batchnorm/__init__.py -------------------------------------------------------------------------------- /backend/models/networks/sync_batchnorm/batchnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/sync_batchnorm/batchnorm.py -------------------------------------------------------------------------------- /backend/models/networks/sync_batchnorm/batchnorm_reimpl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/sync_batchnorm/batchnorm_reimpl.py -------------------------------------------------------------------------------- /backend/models/networks/sync_batchnorm/comm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/sync_batchnorm/comm.py -------------------------------------------------------------------------------- /backend/models/networks/sync_batchnorm/replicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/sync_batchnorm/replicate.py -------------------------------------------------------------------------------- /backend/models/networks/sync_batchnorm/unittest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/networks/sync_batchnorm/unittest.py -------------------------------------------------------------------------------- /backend/models/pix2pix_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/models/pix2pix_model.py -------------------------------------------------------------------------------- /backend/options/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/options/__init__.py -------------------------------------------------------------------------------- /backend/options/base_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/options/base_options.py -------------------------------------------------------------------------------- /backend/options/test_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/options/test_options.py -------------------------------------------------------------------------------- /backend/options/train_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/options/train_options.py -------------------------------------------------------------------------------- /backend/purge.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd img 4 | rm *.png 5 | -------------------------------------------------------------------------------- /backend/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/requirements.txt -------------------------------------------------------------------------------- /backend/results/coco_pretrained/test_latest/images/input_label/greyscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/results/coco_pretrained/test_latest/images/input_label/greyscale.png -------------------------------------------------------------------------------- /backend/results/coco_pretrained/test_latest/images/synthesized_image/greyscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/results/coco_pretrained/test_latest/images/synthesized_image/greyscale.png -------------------------------------------------------------------------------- /backend/results/coco_pretrained/test_latest/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/results/coco_pretrained/test_latest/index.html -------------------------------------------------------------------------------- /backend/rgb_to_label.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/rgb_to_label.json -------------------------------------------------------------------------------- /backend/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/server.py -------------------------------------------------------------------------------- /backend/static/color-picker.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/color-picker.css -------------------------------------------------------------------------------- /backend/static/drawingboard.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/drawingboard.min.css -------------------------------------------------------------------------------- /backend/static/drawingboard.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/drawingboard.min.js -------------------------------------------------------------------------------- /backend/static/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/image1.png -------------------------------------------------------------------------------- /backend/static/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/image2.png -------------------------------------------------------------------------------- /backend/static/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/image3.png -------------------------------------------------------------------------------- /backend/static/image4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/image4.png -------------------------------------------------------------------------------- /backend/static/image5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/image5.png -------------------------------------------------------------------------------- /backend/static/image6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/image6.png -------------------------------------------------------------------------------- /backend/static/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/index.js -------------------------------------------------------------------------------- /backend/static/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/static/style.css -------------------------------------------------------------------------------- /backend/templates/gallery.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/templates/gallery.html -------------------------------------------------------------------------------- /backend/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/templates/index.html -------------------------------------------------------------------------------- /backend/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/test.py -------------------------------------------------------------------------------- /backend/trainers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/trainers/__init__.py -------------------------------------------------------------------------------- /backend/trainers/pix2pix_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/trainers/pix2pix_trainer.py -------------------------------------------------------------------------------- /backend/util/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/util/__init__.py -------------------------------------------------------------------------------- /backend/util/coco.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/util/coco.py -------------------------------------------------------------------------------- /backend/util/html.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/util/html.py -------------------------------------------------------------------------------- /backend/util/iter_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/util/iter_counter.py -------------------------------------------------------------------------------- /backend/util/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/util/util.py -------------------------------------------------------------------------------- /backend/util/visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/util/visualizer.py -------------------------------------------------------------------------------- /backend/web-server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/backend/web-server.py -------------------------------------------------------------------------------- /docs/HACKATHON-README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/docs/HACKATHON-README.md -------------------------------------------------------------------------------- /docs/colorstandard.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/docs/colorstandard.txt -------------------------------------------------------------------------------- /docs/paper.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/docs/paper.txt -------------------------------------------------------------------------------- /docs/promo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/noah-yoshida/smart-sketch/HEAD/docs/promo.png --------------------------------------------------------------------------------