NextGen-GameDev / LibTorch-UE

Integrate LibTorch Unreal to create and use neural networks without leveraging Python.
MIT License
14 stars 3 forks source link

Editor crashes loading custom model when following the Video Demo #9

Closed VV-A-VV closed 2 weeks ago

VV-A-VV commented 2 weeks ago

Describe the bug When use the variable AtumNeuralNetwork Object reference to inference, editor crashes with error E0415.

To Reproduce Steps to reproduce the behaviour:

  1. Just following the Video Demo

Expected behaviour

Screenshots

image image

Environment Information

Additional context Strange problem, is it possible the Engine problem? Any help?

By the way, I tried to import LibTorch in an individual plugin without Atum, and the compile success. But if I try to call the function of Libtorch, for example, torch::Tensor tensor1 = torch::eye(3);,the editor will also crash with

Exception thrown at 0x00007FFB1DDB543C (KernelBase.dll) in UnrealEditor.exe: 0xC06D007E: Module not found (parameters: 0x000000D1FF977E50). Unhandled exception at 0x00007FFB1DDB543C (KernelBase.dll) in UnrealEditor.exe: 0xC06D007E: Module not found (parameters: 0x000000D1FF977E50).

The Error List shows the same Error E0415, but the Atum Plugin can call the torch::tensor without problem.

VV-A-VV commented 2 weeks ago

I have solved this problem, actually the key point is the LibTorch version, same as #7 , LibTorch 2.2.1 works well.