diff --git a/paths.py b/paths.py index ff6d772..452d4c0 100644 --- a/paths.py +++ b/paths.py @@ -19,40 +19,42 @@ # path of the config file for logging in task manager LOG_CONFIG_PATH = os.path.join(CONFIGS_DIR, 'logger-conf.json') -NLTK_MODEL_PATH = os.path.join(ROOT_DIR, 'backend/models/nltk_model.pickle') +MODELS_SAVE_PATH = os.path.join(ROOT_DIR, 'backend', 'models') -TEXT_CNN_MODEL_PATH = os.path.join(ROOT_DIR, 'backend/models/text_cnn_classifier.ckpt') +NLTK_MODEL_PATH = os.path.join(MODELS_SAVE_PATH, 'nltk_model.pickle') -GOOGLE_VOCAB_PATH = os.path.join(ROOT_DIR, 'backend/models/GoogleNews-vectors-negative300.bin') +TEXT_CNN_MODEL_PATH = os.path.join(MODELS_SAVE_PATH, 'text_cnn_classifier.ckpt') -IMAGE_CLASSIFIER_VGG_PATH = os.path.join(ROOT_DIR, 'backend/models/img_classifier_model.ckpt') +GOOGLE_VOCAB_PATH = os.path.join(MODELS_SAVE_PATH, 'GoogleNews-vectors-negative300.bin') -IMAGE_CLASSIFIER_RESNET_PATH = os.path.join(ROOT_DIR, 'backend/models/ResNet1.ckpt') +IMAGE_CLASSIFIER_VGG_PATH = os.path.join(MODELS_SAVE_PATH, 'img_classifier_model.ckpt') -EVENT2MIND_MODEL_PATH = os.path.join(ROOT_DIR, 'backend/models/event2mind-2018.10.26.tar.gz') +IMAGE_CLASSIFIER_RESNET_PATH = os.path.join(MODELS_SAVE_PATH, 'ResNet1.ckpt') -TEST_DATA_PATH = os.path.join(ROOT_DIR, 'data/test') +EVENT2MIND_MODEL_PATH = os.path.join(MODELS_SAVE_PATH, 'event2mind-2018.10.26.tar.gz') -GRIB2_DATA_DIR = os.path.join(ROOT_DIR, 'data', 'grib-data') +DATA_PATH = os.path.join(ROOT_DIR, 'data') -SOIL_MOIS_DATA_DIR = os.path.join(ROOT_DIR, 'data', 'soil-mois-data') +TEST_DATA_PATH = os.path.join(DATA_PATH, 'test') -US_SHAPE_PATH = os.path.join(ROOT_DIR, 'data', 'US-continental', 'US_continental.shp') +GRIB2_DATA_DIR = os.path.join(DATA_PATH, 'grib-data') -USGS_DATA_DIR = os.path.join(ROOT_DIR, 'data', 'usgs') +SOIL_MOIS_DATA_DIR = os.path.join(DATA_PATH, 'soil-mois-data') + +US_SHAPE_PATH = os.path.join(DATA_PATH, 'US-continental', 'US_continental.shp') + +USGS_DATA_DIR = os.path.join(DATA_PATH, 'usgs') WIND_DATA_DIR = os.path.join(ROOT_DIR, 'backend', 'data') GRIB2JSON_PATH = os.path.join('converter', 'bin', 'grib2json') -TWEET_IMAGES_DIR = os.path.join(ROOT_DIR, 'data/tweet_images') - -MODELS_SAVE_PATH = os.path.join(ROOT_DIR, 'backend/models/') +TWEET_IMAGES_DIR = os.path.join(DATA_PATH, 'tweet_images') -BOUNDARY_PATH = os.path.join(ROOT_DIR, 'data/boundaries') +BOUNDARY_PATH = os.path.join(DATA_PATH, 'boundaries') -IMAGE_TRAIN_PATH = os.path.join(ROOT_DIR, 'data/image_dataset/train') +IMAGE_TRAIN_PATH = os.path.join(DATA_PATH, 'image_dataset/train') -IMAGE_VAL_PATH = os.path.join(ROOT_DIR, 'data/image_dataset/val') +IMAGE_VAL_PATH = os.path.join(DATA_PATH, 'image_dataset/val') -PRISM_DATA_PATH = os.path.join(ROOT_DIR, 'data', 'prism') +PRISM_DATA_PATH = os.path.join(DATA_PATH, 'prism') diff --git a/requirements.txt b/requirements.txt index c70a462..7ee5963 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,24 @@ -lxml -rasterio -fiona -gdal==2.4.2 -rasterio -fiona -torchvision -torch -matplotlib +requests +flask deprecated -beautifulsoup4 -selenium -wget -allennlp -pyproj==2.2.1 rootpath -flask -flask-cors -pygrib -requests +flask_cors python-twitter +lxml +numpy pandas -nltk==3.4.5 -numpy==1.16.4 -psycopg2==2.8.3 -timeout-decorator -mypy +allennlp +torch +torchvision +gensim +keras_preprocessing +timeout_decorator +python-dateutil +bs4 +selenium +pyproj +pygrib +rasterio +fiona +gdal==2.4.2 +mypy \ No newline at end of file