From 93d37b11f2e922400898b866af9185047802ba80 Mon Sep 17 00:00:00 2001 From: yangyongjie Date: Tue, 21 Jul 2020 17:51:25 +0800 Subject: [PATCH] update the directory of YoloV3-DarkNet53 and deepfm --- model_zoo/deepfm/src/__init__.py | 14 -------------- .../{ => official/cv}/yolov3_darknet53/README.md | 1 + .../{ => official/cv}/yolov3_darknet53/eval.py | 0 .../scripts/run_distribute_train.sh | 0 .../cv}/yolov3_darknet53/scripts/run_eval.sh | 0 .../scripts/run_standalone_train.sh | 0 .../official/cv/yolov3_darknet53/src/__init__.py | 0 .../cv}/yolov3_darknet53/src/config.py | 0 .../cv}/yolov3_darknet53/src/darknet.py | 0 .../yolov3_darknet53/src/distributed_sampler.py | 0 .../cv}/yolov3_darknet53/src/initializer.py | 0 .../cv}/yolov3_darknet53/src/logger.py | 0 .../{ => official/cv}/yolov3_darknet53/src/loss.py | 0 .../cv}/yolov3_darknet53/src/lr_scheduler.py | 0 .../cv}/yolov3_darknet53/src/transforms.py | 0 .../{ => official/cv}/yolov3_darknet53/src/util.py | 0 .../{ => official/cv}/yolov3_darknet53/src/yolo.py | 0 .../cv}/yolov3_darknet53/src/yolo_dataset.py | 0 .../{ => official/cv}/yolov3_darknet53/train.py | 0 .../{ => official/recommend}/deepfm/README.md | 10 ++++++---- model_zoo/{ => official/recommend}/deepfm/eval.py | 0 .../deepfm/scripts/run_distribute_train.sh | 0 .../recommend}/deepfm/scripts/run_eval.sh | 0 .../deepfm/scripts/run_standalone_train.sh | 0 .../recommend/deepfm/src}/__init__.py | 0 .../recommend}/deepfm/src/callback.py | 0 .../{ => official/recommend}/deepfm/src/config.py | 0 .../{ => official/recommend}/deepfm/src/dataset.py | 0 .../{ => official/recommend}/deepfm/src/deepfm.py | 0 model_zoo/{ => official/recommend}/deepfm/train.py | 0 30 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 model_zoo/deepfm/src/__init__.py rename model_zoo/{ => official/cv}/yolov3_darknet53/README.md (98%) rename model_zoo/{ => official/cv}/yolov3_darknet53/eval.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/scripts/run_distribute_train.sh (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/scripts/run_eval.sh (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/scripts/run_standalone_train.sh (100%) create mode 100644 model_zoo/official/cv/yolov3_darknet53/src/__init__.py rename model_zoo/{ => official/cv}/yolov3_darknet53/src/config.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/darknet.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/distributed_sampler.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/initializer.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/logger.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/loss.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/lr_scheduler.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/transforms.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/util.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/yolo.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/src/yolo_dataset.py (100%) rename model_zoo/{ => official/cv}/yolov3_darknet53/train.py (100%) rename model_zoo/{ => official/recommend}/deepfm/README.md (95%) rename model_zoo/{ => official/recommend}/deepfm/eval.py (100%) rename model_zoo/{ => official/recommend}/deepfm/scripts/run_distribute_train.sh (100%) rename model_zoo/{ => official/recommend}/deepfm/scripts/run_eval.sh (100%) rename model_zoo/{ => official/recommend}/deepfm/scripts/run_standalone_train.sh (100%) rename model_zoo/{deepfm => official/recommend/deepfm/src}/__init__.py (100%) rename model_zoo/{ => official/recommend}/deepfm/src/callback.py (100%) rename model_zoo/{ => official/recommend}/deepfm/src/config.py (100%) rename model_zoo/{ => official/recommend}/deepfm/src/dataset.py (100%) rename model_zoo/{ => official/recommend}/deepfm/src/deepfm.py (100%) rename model_zoo/{ => official/recommend}/deepfm/train.py (100%) diff --git a/model_zoo/deepfm/src/__init__.py b/model_zoo/deepfm/src/__init__.py deleted file mode 100644 index 301ef9dcb71..00000000000 --- a/model_zoo/deepfm/src/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2020 Huawei Technologies Co., Ltd -# -# Licensed under the Apache License, Version 2.0 (the License); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# httpwww.apache.orglicensesLICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an AS IS BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================ diff --git a/model_zoo/yolov3_darknet53/README.md b/model_zoo/official/cv/yolov3_darknet53/README.md similarity index 98% rename from model_zoo/yolov3_darknet53/README.md rename to model_zoo/official/cv/yolov3_darknet53/README.md index 9a5bfed7d39..d353f42e459 100644 --- a/model_zoo/yolov3_darknet53/README.md +++ b/model_zoo/official/cv/yolov3_darknet53/README.md @@ -31,6 +31,7 @@ This is an example of training YOLOV3-DarkNet53 with COCO2014 dataset in MindSpo ├─run_distribute_train.sh # launch distributed training(8p) └─run_eval.sh # launch evaluating ├─src + ├─__init__.py # python init file ├─config.py # parameter configuration ├─darknet.py # backbone of network ├─distributed_sampler.py # iterator of dataset diff --git a/model_zoo/yolov3_darknet53/eval.py b/model_zoo/official/cv/yolov3_darknet53/eval.py similarity index 100% rename from model_zoo/yolov3_darknet53/eval.py rename to model_zoo/official/cv/yolov3_darknet53/eval.py diff --git a/model_zoo/yolov3_darknet53/scripts/run_distribute_train.sh b/model_zoo/official/cv/yolov3_darknet53/scripts/run_distribute_train.sh similarity index 100% rename from model_zoo/yolov3_darknet53/scripts/run_distribute_train.sh rename to model_zoo/official/cv/yolov3_darknet53/scripts/run_distribute_train.sh diff --git a/model_zoo/yolov3_darknet53/scripts/run_eval.sh b/model_zoo/official/cv/yolov3_darknet53/scripts/run_eval.sh similarity index 100% rename from model_zoo/yolov3_darknet53/scripts/run_eval.sh rename to model_zoo/official/cv/yolov3_darknet53/scripts/run_eval.sh diff --git a/model_zoo/yolov3_darknet53/scripts/run_standalone_train.sh b/model_zoo/official/cv/yolov3_darknet53/scripts/run_standalone_train.sh similarity index 100% rename from model_zoo/yolov3_darknet53/scripts/run_standalone_train.sh rename to model_zoo/official/cv/yolov3_darknet53/scripts/run_standalone_train.sh diff --git a/model_zoo/official/cv/yolov3_darknet53/src/__init__.py b/model_zoo/official/cv/yolov3_darknet53/src/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/model_zoo/yolov3_darknet53/src/config.py b/model_zoo/official/cv/yolov3_darknet53/src/config.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/config.py rename to model_zoo/official/cv/yolov3_darknet53/src/config.py diff --git a/model_zoo/yolov3_darknet53/src/darknet.py b/model_zoo/official/cv/yolov3_darknet53/src/darknet.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/darknet.py rename to model_zoo/official/cv/yolov3_darknet53/src/darknet.py diff --git a/model_zoo/yolov3_darknet53/src/distributed_sampler.py b/model_zoo/official/cv/yolov3_darknet53/src/distributed_sampler.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/distributed_sampler.py rename to model_zoo/official/cv/yolov3_darknet53/src/distributed_sampler.py diff --git a/model_zoo/yolov3_darknet53/src/initializer.py b/model_zoo/official/cv/yolov3_darknet53/src/initializer.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/initializer.py rename to model_zoo/official/cv/yolov3_darknet53/src/initializer.py diff --git a/model_zoo/yolov3_darknet53/src/logger.py b/model_zoo/official/cv/yolov3_darknet53/src/logger.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/logger.py rename to model_zoo/official/cv/yolov3_darknet53/src/logger.py diff --git a/model_zoo/yolov3_darknet53/src/loss.py b/model_zoo/official/cv/yolov3_darknet53/src/loss.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/loss.py rename to model_zoo/official/cv/yolov3_darknet53/src/loss.py diff --git a/model_zoo/yolov3_darknet53/src/lr_scheduler.py b/model_zoo/official/cv/yolov3_darknet53/src/lr_scheduler.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/lr_scheduler.py rename to model_zoo/official/cv/yolov3_darknet53/src/lr_scheduler.py diff --git a/model_zoo/yolov3_darknet53/src/transforms.py b/model_zoo/official/cv/yolov3_darknet53/src/transforms.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/transforms.py rename to model_zoo/official/cv/yolov3_darknet53/src/transforms.py diff --git a/model_zoo/yolov3_darknet53/src/util.py b/model_zoo/official/cv/yolov3_darknet53/src/util.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/util.py rename to model_zoo/official/cv/yolov3_darknet53/src/util.py diff --git a/model_zoo/yolov3_darknet53/src/yolo.py b/model_zoo/official/cv/yolov3_darknet53/src/yolo.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/yolo.py rename to model_zoo/official/cv/yolov3_darknet53/src/yolo.py diff --git a/model_zoo/yolov3_darknet53/src/yolo_dataset.py b/model_zoo/official/cv/yolov3_darknet53/src/yolo_dataset.py similarity index 100% rename from model_zoo/yolov3_darknet53/src/yolo_dataset.py rename to model_zoo/official/cv/yolov3_darknet53/src/yolo_dataset.py diff --git a/model_zoo/yolov3_darknet53/train.py b/model_zoo/official/cv/yolov3_darknet53/train.py similarity index 100% rename from model_zoo/yolov3_darknet53/train.py rename to model_zoo/official/cv/yolov3_darknet53/train.py diff --git a/model_zoo/deepfm/README.md b/model_zoo/official/recommend/deepfm/README.md similarity index 95% rename from model_zoo/deepfm/README.md rename to model_zoo/official/recommend/deepfm/README.md index 47809a54c02..81cb023b974 100644 --- a/model_zoo/deepfm/README.md +++ b/model_zoo/official/recommend/deepfm/README.md @@ -23,13 +23,15 @@ The overall network architecture of DeepFM is show below: ## Script and sample code -```python +```shell ├── deepfm ├── README.md ├── scripts - │ ├──run_train.sh - │ ├──run_eval.sh - ├── src + │ ├──run_distribute_train.sh + │ ├──run_standalone_train.sh + │ ├──run_eval.sh + ├── src + │ ├──__init__.py │ ├──config.py │ ├──dataset.py │ ├──callback.py diff --git a/model_zoo/deepfm/eval.py b/model_zoo/official/recommend/deepfm/eval.py similarity index 100% rename from model_zoo/deepfm/eval.py rename to model_zoo/official/recommend/deepfm/eval.py diff --git a/model_zoo/deepfm/scripts/run_distribute_train.sh b/model_zoo/official/recommend/deepfm/scripts/run_distribute_train.sh similarity index 100% rename from model_zoo/deepfm/scripts/run_distribute_train.sh rename to model_zoo/official/recommend/deepfm/scripts/run_distribute_train.sh diff --git a/model_zoo/deepfm/scripts/run_eval.sh b/model_zoo/official/recommend/deepfm/scripts/run_eval.sh similarity index 100% rename from model_zoo/deepfm/scripts/run_eval.sh rename to model_zoo/official/recommend/deepfm/scripts/run_eval.sh diff --git a/model_zoo/deepfm/scripts/run_standalone_train.sh b/model_zoo/official/recommend/deepfm/scripts/run_standalone_train.sh similarity index 100% rename from model_zoo/deepfm/scripts/run_standalone_train.sh rename to model_zoo/official/recommend/deepfm/scripts/run_standalone_train.sh diff --git a/model_zoo/deepfm/__init__.py b/model_zoo/official/recommend/deepfm/src/__init__.py similarity index 100% rename from model_zoo/deepfm/__init__.py rename to model_zoo/official/recommend/deepfm/src/__init__.py diff --git a/model_zoo/deepfm/src/callback.py b/model_zoo/official/recommend/deepfm/src/callback.py similarity index 100% rename from model_zoo/deepfm/src/callback.py rename to model_zoo/official/recommend/deepfm/src/callback.py diff --git a/model_zoo/deepfm/src/config.py b/model_zoo/official/recommend/deepfm/src/config.py similarity index 100% rename from model_zoo/deepfm/src/config.py rename to model_zoo/official/recommend/deepfm/src/config.py diff --git a/model_zoo/deepfm/src/dataset.py b/model_zoo/official/recommend/deepfm/src/dataset.py similarity index 100% rename from model_zoo/deepfm/src/dataset.py rename to model_zoo/official/recommend/deepfm/src/dataset.py diff --git a/model_zoo/deepfm/src/deepfm.py b/model_zoo/official/recommend/deepfm/src/deepfm.py similarity index 100% rename from model_zoo/deepfm/src/deepfm.py rename to model_zoo/official/recommend/deepfm/src/deepfm.py diff --git a/model_zoo/deepfm/train.py b/model_zoo/official/recommend/deepfm/train.py similarity index 100% rename from model_zoo/deepfm/train.py rename to model_zoo/official/recommend/deepfm/train.py