已提交的gitlab代码再提交新的模型文件

写给小白,step-by-step~

首先进入到本地的文件夹

zhengxinying@COMP-01-10710 MINGW64 /c/janusfacelock_python (master)

运行命令 $ git status #查看当前的状态

$ git status
On branch master
Your branch is behind 'origin/master' by 7 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)

nothing to commit, working tree clean

已与云端保持一致,不放心的再运行git pull origin master拉取一下代码

$ git pull origin master
From code.orbbec.com.cn:xiatian/janusfacelock_python
 * branch            master     -> FETCH_HEAD
Updating 0028a46..e06c705
Fast-forward
 FaceDetect/face_detect.py                          |  203 +++-
 FaceDetect/model/face_detect_ir_lock.npz           |  Bin 4736112 -> 2621897 bytes
 FaceDetect/model/face_detect_ir_lock.prototxt      |  726 ++++--------
 FaceDetect/model/face_detect_ir_lock_int16.npz     |  Bin 4736112 -> 0 bytes
 .../model/face_detect_ir_lock_int16.prototxt       | 1217 --------------------
 FaceDetect/retinaface.py                           |  553 ---------
 FaceLandmark/face_landmark.py                      |    2 +-
 FaceLandmark/model/face_landmark_ir_lock.npz       |  Bin 6204127 -> 1448549 bytes
 FaceLandmark/model/face_landmark_ir_lock.prototxt  |  518 +++++----
 FaceQuality/model/face_quality_ir_lock.npz         |  Bin 3444114 -> 1154999 bytes
 FaceQuality/model/face_quality_ir_lock.prototxt    |  501 +++-----
 FaceRecog/face_recog.py                            |   22 +-
 FaceRecog/model/face_recognize_ir_lock.npz         |  Bin 7697748 -> 11059904 bytes
 FaceRecog/model/face_recognize_ir_lock.prototxt    |  740 ++++++------
 config.py                                          |    2 +-
 generate_gallery_embedding.py                      |    6 +-
 test.py                                            |   10 +-
 17 files changed, 1162 insertions(+), 3338 deletions(-)
 delete mode 100644 FaceDetect/model/face_detect_ir_lock_int16.npz
 delete mode 100644 FaceDetect/model/face_detect_ir_lock_int16.prototxt
 delete mode 100644 FaceDetect/retinaface.py

将要提交的新模型放到对应的路径下,查看当前状态

$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   LivingIr/model/living_body_ir_lock.npz
        modified:   LivingIr/model/living_body_ir_lock.prototxt

会报已修改了这两个模型,接下来将工程添加到暂存区,

$ git add ./*

查看状态,显示已修改的变成绿色

$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        modified:   LivingIr/model/living_body_ir_lock.npz
        modified:   LivingIr/model/living_body_ir_lock.prototxt

commit提交, -m添加说明

$ git commit -m"更新ir活体模型"
[master 5434a2f] 鏇存柊ir娲讳綋妯″瀷
 2 files changed, 36 insertions(+), 36 deletions(-)
 rewrite LivingIr/model/living_body_ir_lock.npz (81%)

最后运行git push -u origin master将本地仓库推送到远程仓库

$ git push -u origin master
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 622.96 KiB | 6.49 MiB/s, done.
Total 6 (delta 3), reused 0 (delta 0), pack-reused 0
To code.orbbec.com.cn:xiatian/janusfacelock_python.git
   e06c705..5434a2f  master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.

已提交的gitlab代码再提交新的模型文件

duang, 更改已完成~~

上一篇:将TVM集成到PyTorch上


下一篇:7-1 哈夫曼树哈夫曼编码