Scene recognition models based on pytorch and TF2.0. Upgraded from https://github.com/CSAILVision/places365
conda env create -f environment.yml python=3.7
conda activate scene_pytorch_tf
export PYTHONPATH=$PYTHONPATH:$(pwd)
Please refer [Model Zoo]
We download the data from http://places2.csail.mit.edu/download.html
These images are 256x256 images, in a more friendly directory structure that in train and val split the images are organized such as train/reception/00003724.jpg and val/raft/000050000.jpg
sh download_data_pytorch.sh
python tools/train.py
python scripts/remove_pytorch_module.py
Donwload pretrained weights from https://drive.google.com/drive/folders/1NbV3NZlgbqnLSd9zwZoz8kFpNQjUYolT?usp=sharing
python tools/test.py
python scripts/convert_torchscript.py
1. Download the data. (Refer: https://github.com/tensorflow/datasets)
python -m tensorflow_datasets.scripts.download_and_prepare --datasets=places365_small
-
2. Train the model with multiple GPUs
-
3. Test models