前提
按照 windows实例diretX Container运行dockerfile时在第三步开始报错0xc0370106,容器也无法restart
环境
win11 版本号22621.1992
docker for windows 4.22.0
过程及结果
发现该实例使用的镜像mcr.microsoft.com/windows:1909,无法建立容器运行hello world,判断该镜像本系统无法正常使用,原因未明,可能向下兼容有问题。
后改用镜像mcr.microsoft.com/windows/server:ltsc2022,实例运转正常。
最后,该实例curl命令下载可能失败,导致无法运行,建议自己下载(外网(懒人)的用迅雷下),然后copy进容器建立新镜像再运行会方便好多
运行成功反馈:
Created LearningModelDevice with CPU device
2023-08-04 16:16:16
2023-08-04 16:16:16 Created LearningModelDevice with GPU: AMD Radeon RX 5700 XT
2023-08-04 16:16:16 Loading model (path = C:\App\tiny_yolov2\model.onnx)...
2023-08-04 16:16:16 =================================================================
2023-08-04 16:16:16 Name: Example Model
2023-08-04 16:16:16 Author: OnnxMLTools
2023-08-04 16:16:16 Version: 0
2023-08-04 16:16:16 Domain: onnxconverter-common
2023-08-04 16:16:16 Description: The Tiny YOLO network from the paper 'YOLO9000: Better, Faster, Stronger' (2016), arXiv:1612.08242
2023-08-04 16:16:16 Path: C:\App\tiny_yolov2\model.onnx
2023-08-04 16:16:16 Support FP16: false
Input Feature Info:
2023-08-04 16:16:16 Name: image
2023-08-04 16:16:16 Feature Kind: Image (Height: 416, Width: 416)
Output Feature Info:
2023-08-04 16:16:16 Name: grid
2023-08-04 16:16:16 Feature Kind: Float
=================================================================
Binding (device = CPU, iteration = 1, inputBinding = CPU, inputDataType = Tensor, deviceCreationLocation = WinML)...[SUCCESS]
2023-08-04 16:16:16 Evaluating (device = CPU, iteration = 1, inputBinding = CPU, inputDataType = Tensor, deviceCreationLocation = WinML)...[SUCCESS]
2023-08-04 16:16:18 Binding and Evaluating 99 more times...
2023-08-04 16:16:18 Results (device = CPU, numIterations = 100, inputBinding = CPU, inputDataType = Tensor, deviceCreationLocation = WinML):
2023-08-04 16:16:18
2023-08-04 16:16:18 First Iteration Performance (load, bind, session creation, and evaluate):
2023-08-04 16:16:18 Load: 52.8779 ms
2023-08-04 16:16:18 Bind: 0.0894 ms
2023-08-04 16:16:18 Session Creation: 26.1073 ms
2023-08-04 16:16:18 Evaluate: 18.8141 ms
2023-08-04 16:16:18
2023-08-04 16:16:18 Working Set Memory usage (evaluate): 29.9648 MB
2023-08-04 16:16:18 Working Set Memory usage (load, bind, session creation, and evaluate): 160.527 MB
2023-08-04 16:16:18 Peak Working Set Memory Difference (load, bind, session creation, and evaluate): 191.293 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Dedicated Memory usage (evaluate): 0 MB
2023-08-04 16:16:18 Dedicated Memory usage (load, bind, session creation, and evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Shared Memory usage (evaluate): 0 MB
2023-08-04 16:16:18 Shared Memory usage (load, bind, session creation, and evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Performance excluding first iteration. Iterations 2 to 100. (Iterations greater than 1 only bind and evaluate)
2023-08-04 16:16:18 Average Bind: 0.0273566 ms
2023-08-04 16:16:18 Average Evaluate: 17.0443 ms
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Working Set Memory usage (bind): 3.94571e-05 MB
2023-08-04 16:16:18 Average Working Set Memory usage (evaluate): 0.264086 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Dedicated Memory usage (bind): 0 MB
2023-08-04 16:16:18 Average Dedicated Memory usage (evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Shared Memory usage (bind): 0 MB
2023-08-04 16:16:18 Average Shared Memory usage (evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18
2023-08-04 16:16:18
2023-08-04 16:16:18 Binding (device = GPU, iteration = 1, inputBinding = CPU, inputDataType = Tensor, deviceCreationLocation = WinML)...[SUC
2023-08-04 16:16:18 CCESS]
2023-08-04 16:16:18 Evaluating (device = GPU, iteration = 1, inputBinding = CPU, inputDataType = Tensor, deviceCreationLocation = WinML)...[
2023-08-04 16:16:18 [SUCCESS]
2023-08-04 16:16:18 Binding and Evaluating 99 more times...
2023-08-04 16:16:18 Results (device = GPU, numIterations = 100, inputBinding = CPU, inputDataType = Tensor, deviceCreationLocation = WinML):
2023-08-04 16:16:18
2023-08-04 16:16:18 First Iteration Performance (load, bind, session creation, and evaluate):
2023-08-04 16:16:18 Load: 52.8779 ms
2023-08-04 16:16:18 Bind: 0.0669 ms
2023-08-04 16:16:18 Session Creation: 49.4461 ms
2023-08-04 16:16:18 Evaluate: 10.6199 ms
2023-08-04 16:16:18
2023-08-04 16:16:18 Working Set Memory usage (evaluate): 1.38281 MB
2023-08-04 16:16:18 Working Set Memory usage (load, bind, session creation, and evaluate): 134.24 MB
2023-08-04 16:16:18 Peak Working Set Memory Difference (load, bind, session creation, and evaluate): 140.949 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Dedicated Memory usage (evaluate): 0 MB
2023-08-04 16:16:18 Dedicated Memory usage (load, bind, session creation, and evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Shared Memory usage (evaluate): 0 MB
2023-08-04 16:16:18 Shared Memory usage (load, bind, session creation, and evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Performance excluding first iteration. Iterations 2 to 100. (Iterations greater than 1 only bind and evaluate)
2023-08-04 16:16:18 Average Bind: 0.0167101 ms
2023-08-04 16:16:18 Average Evaluate: 1.67909 ms
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Working Set Memory usage (bind): 0 MB
2023-08-04 16:16:18 Average Working Set Memory usage (evaluate): 0.000197285 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Dedicated Memory usage (bind): 0 MB
2023-08-04 16:16:18 Average Dedicated Memory usage (evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18 Average Shared Memory usage (bind): 0 MB
2023-08-04 16:16:18 Average Shared Memory usage (evaluate): 0 MB
2023-08-04 16:16:18
2023-08-04 16:16:18
2023-08-04 16:16:18