diff --git a/.gitignore b/.gitignore index 1965b2b..e2493c6 100644 --- a/.gitignore +++ b/.gitignore @@ -129,5 +129,6 @@ uwsgi .conf app/logs +app/logs/* *.log *.jpg \ No newline at end of file diff --git a/README.md b/README.md index 3039a7d..ec77e43 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,7 @@ 1. 安装依赖 - $ conda create -n trinity_client_mixi python=3.9 - $ conda create -n trinity_client_mixi -y + $ conda create -n trinity_client_mixi python=3.9 -y $ conda activate trinity_client_mixi $ pip install -r requirements.txt $ conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia -y diff --git a/app/core/config.py b/app/core/config.py index 3d7126d..c11b0ed 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -27,11 +27,11 @@ MINIO_SECURE = False MINIO_ACCESS = "e8zc55mzDOh4IzRrZ9Oa" MINIO_SECRET = "uHfqJ7UkwA1PTDGfnA44Hp9ux5YkZTkzZLjeOYhE" -OM_TRITON_IP = "10.1.1.150" -OM_TRITON_PORT = "7000" +OM_TRITON_IP = "10.1.1.240" +OM_TRITON_PORT = "10010" -ATT_TRITON_IP = "10.1.1.150" -ATT_TRITON_PORT = "6000" +ATT_TRITON_IP = "10.1.1.240" +ATT_TRITON_PORT = "10020" # service env # LOGSPATH = "logs/errors.log" @@ -39,6 +39,6 @@ ATT_TRITON_PORT = "6000" # FASHION_CATEGORIES_MAPPING = "app/service/outfit_matcher/config/fashion_category_mapping.json" # pycharm debug -LOGSPATH = "logs/errors.log" +LOGS_PATH = "logs/errors.log" FASHION_CATEGORIES = "service/outfit_matcher/config/fashion_categories.json" FASHION_CATEGORIES_MAPPING = "service/outfit_matcher/config/fashion_category_mapping.json" diff --git a/logging_env.py b/logging_env.py index 0eb0fd6..ce4e9da 100644 --- a/logging_env.py +++ b/logging_env.py @@ -1,4 +1,4 @@ -from app.core.config import LOGSPATH +from app.core.config import LOGS_PATH LOGGER_CONFIG_DICT = { "version": 1, @@ -17,7 +17,7 @@ LOGGER_CONFIG_DICT = { "class": "logging.handlers.RotatingFileHandler", "level": "INFO", "formatter": "simple", - "filename": LOGSPATH, + "filename": LOGS_PATH, "maxBytes": 10485760, "backupCount": 50, "encoding": "utf8", @@ -26,7 +26,7 @@ LOGGER_CONFIG_DICT = { "class": "logging.handlers.RotatingFileHandler", "level": "ERROR", "formatter": "simple", - "filename": LOGSPATH, + "filename": LOGS_PATH, "maxBytes": 10485760, "backupCount": 20, "encoding": "utf8", @@ -35,7 +35,7 @@ LOGGER_CONFIG_DICT = { "class": "logging.handlers.RotatingFileHandler", "level": "DEBUG", "formatter": "simple", - "filename": LOGSPATH, + "filename": LOGS_PATH, "maxBytes": 10485760, "backupCount": 50, "encoding": "utf8",