Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Genius Patrick c76842f54d | 6 months ago | |
---|---|---|
.. | ||
README.md | 6 months ago | |
gen_benchmark.py | 10 months ago | |
launch_dist.py | 6 months ago | |
launch_dist.sh | 6 months ago | |
package.sh | 6 months ago |
This folder is a collection of utility scripts, listed and explained below.
All scripts need to be run in the root path of project, unless otherwise noted.
Generating benchmark by collecting results from configs folder. Usage:
python ./scripts/gen_benchmark.py
It will generate a markdown file, named as benchmark_results.md
.
Making wheel package of mindcv
and sha256sum of the wheel files. Usage:
./scripts/package.sh
New! Just simply run the following command to make the wheel:
python -m build
A simple clean launcher for distributed training on Ascend.
Following instruction from Mindspore,
except launching distributed training with mpirun
, we can also use multiprocess
with multi-card networking configuration rank_table.json
to manually start a process on each card.
To get rank_table.json
on your machine, try the hccl tools from here.
After you get the
rank_table.json
, replace the"/path/to/rank_table.json"
inlaunch_dist.sh
with the actual path.
Now, you can replace your standalone launching with distributed launching:
- python script.py --arg1=value1 --arg2=value2
+ ./scripts/launch_dist.sh script.py --arg1=value1 --arg2=value2
where --arg*
are arguments of script.py
.
For example:
./scripts/launch_dist.sh train.py --config=configs/resnet/resnet_50_ascend.yaml --data_dir=/my/awesome/dataset
Note: Don't forget to check the argument
--distribute
if you are usingtrain.py
ortrain_with_func.py
!
For anyone who hates shell scripts, we offer python scripts launch_dist.py
as well. Both are used in the same way!
A toolbox of vision models and algorithms based on MindSpore
https://github.com/mindspore-lab/mindcv
Python Markdown other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》