$ php test.php
2023-12-18 11:19:05,821 - modelscope - INFO - PyTorch version 2.0.1 Found.
2023-12-18 11:19:05,821 - modelscope - INFO - TensorFlow version 2.15.0.post1 Found.
2023-12-18 11:19:05,821 - modelscope - INFO - Loading ast index from /home/mrpzx/.cache/modelscope/ast_indexer
2023-12-18 11:19:05,861 - modelscope - INFO - Loading done! Current index file version is 1.10.0, with md5 238e3ec6956bd434f67275fea2be7f2b and a total number of 946 components indexed
<class 'modelscope.utils.config.Config'>
<class 'list'>
复现代码
执行结果
测试https://modelscope.cn/models/damo/cv_convnextTiny_ocr-recognition-licenseplate_damo/summary的训练部分时发现无法传参_cfg_modify_fn,php定义的_cfg_modify_fn拿到的cfg和返回的cfg均不符合python中定义的cfg类型