-
Huawei Account
{ "auth": { "identity": { "methods": ["password"], "password": { "user": { "name": "##username##", "password": "password", "domain": { "name": "##username##" } } } }, "scope": { "project": { "name": "##project_name##" } } } }Save β as file
auth_datainto$PROJECT_ROOT/data/iam.Save your api url as file
api_urlinto$PROJECT_ROOT/data/iam.Modify your own IAM auth token url w.r.t. your project region at the entrance of this program.
Do not make your secrets known to the public
File structure should be like this:
./ βββ README.md βββ auth.py βββ data βΒ Β βββ cache βΒ Β βββ iam βΒ Β βΒ Β βββ 20191226233557982276.aidate βΒ Β βΒ Β βββ api_url((each line of content is an url)) βΒ Β βΒ Β βββ auth_data βΒ Β βββ output βΒ Β βΒ Β βββ xxx-out.mp4 βΒ Β βΒ Β βββ val βΒ Β βββ temp βΒ Β βββ test(this is test set folder) βΒ Β βΒ Β βββ Annotations βΒ Β βΒ Β βββ ImageSets βΒ Β βΒ Β βββ JPEGImages βΒ Β βββ video βΒ Β βββ xxx-in.mp4 βββ mosaix.py βββ test.py βββ utils.py βββ val.py βββ voc_eval.py -
Python 3.7
- opencv-python
- numpy
- matplotlib
- pillow
-
Modify your own data path (like
./data/VOC2007test/...) in functionmain
Run python mosaix.py