Comments (4)
Strange, perhaps you used a different Tensorflow version for earlier models and this could have, for some reason, cause an incompatibility. The 4.18 build used either https://github.com/getnamo/tensorflow-ue4/releases/tag/0.5.0, https://github.com/getnamo/tensorflow-ue4/releases/tag/0.6.0, or https://github.com/getnamo/tensorflow-ue4/releases/tag/0.7.0 so the matching tensorflow version is between 1.4-1.6. Let's try to downgrade the 4.20 tensorflow version.
- For the updated project delete
Plugins\UnrealEnginePython\Binaries\Win64\Lib\site-packages
- Update https://github.com/getnamo/tensorflow-ue4/blob/master/Content/Scripts/upymodule.json to an older version (1.4, 1.5 or 1.6)
- launch the project and wait for all dependencies to install.
Let me know if that solves it, if not see what your logs say under Saved/Logs
from tensorflow-unreal.
Hello,
I get a similar issue with UE 4.21.0. I successfully load my model using model_from_json() and the prediction works fine with default weights. However, when I install h5py to load my trained weights using load_weights(), UE crash.
@getnamo I tried to follow your method but UE crash with tensorflow 1.5 & 1.6.
For "tensorflow": "1.4.0", I got the following error in the log: LogPython: Error: module 'enum' has no attribute 'IntFlag'
Any updates on how to solve this issue?
Thanks!
EDIT: I get the following errors in the crash reporter:
Access violation - code c0000005 (first/second chance not available)
_conv_cp36_win_amd64
_conv_cp36_win_amd64
python36
... //repeat many times python36
python36
UE4Editor_UnrealEnginePython
UE4Editor_Engine!AActor::InitializeComponents() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actor.cpp:4315]
UE4Editor_Engine!ULevel::RouteActorInitialize() [d:\build\++ue4\sync\engine\source\runtime\engine\private\level.cpp:1822]
UE4Editor_Engine!UWorld::InitializeActorsForPlay() [d:\build\++ue4\sync\engine\source\runtime\engine\private\world.cpp:3642]
UE4Editor_Engine!UGameInstance::StartPlayInEditorGameInstance() [d:\build\++ue4\sync\engine\source\runtime\engine\private\gameinstance.cpp:376]
UE4Editor_UnrealEd!UEditorEngine::CreatePIEGameInstance() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\playlevel.cpp:3332]
UE4Editor_UnrealEd!UEditorEngine::PlayInEditor() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\playlevel.cpp:2459]
UE4Editor_UnrealEd!UEditorEngine::StartQueuedPlayMapRequest() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\playlevel.cpp:1270]
UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\editorengine.cpp:1640]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:403]
UE4Editor!FEngineLoop::Tick() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3699]
UE4Editor!GuardedMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launch.cpp:174]
UE4Editor!GuardedMainWrapper() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]
UE4Editor!WinMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:276]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283]
kernel32
ntdll
from tensorflow-unreal.
I am facing the same error currently with UE4.21.0
from tensorflow-unreal.
try downgrading h5py to e.g. 2.7 in https://github.com/getnamo/tensorflow-ue4/blob/master/Content/Scripts/upymodule.json
from tensorflow-unreal.
Related Issues (20)
- 4.22 - Failed to load the native TensorFlow runtime. HOT 7
- C++ project failed, but blueprint project works well HOT 2
- Refactor to support Native and Remote variants HOT 2
- GPU Version not working with CUDA 10 HOT 1
- Tensorflow 2 support HOT 1
- Support for 4.24 and 4.25 HOT 5
- Unknown Function when Cooking Game Using My Tensorflow Plugin HOT 2
- TFAudioCapture for recording audio HOT 1
- AttributeError: 'TensorFlowComponent' object has no attribute 'tfapi' HOT 7
- example for UE 4.25 HOT 1
- sending data from TFAudioCapture to Python HOT 3
- Error: AttributeError: 'TensorFlowComponent' object has no attribute 'tfapi' HOT 4
- Embedded Server: can't open file . . /ml-remote-server/server.py file No such file or directory HOT 2
- ImportError: No module named tensorflow HOT 2
- Sample project in 4.26 HOT 1
- The Following Modules are missing or built with a different engine version HOT 8
- RuntimeError: got Future <Future pending> attached to a different loop HOT 2
- Why Plugins cannot be automatically installed in UE5 after being copied to the corresponding location? HOT 2
- Question on Using Trained Model
- Question -- Does this plugin work on unreal engine 5? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-unreal.