Coder Social home page Coder Social logo

Comments (28)

krumiaa avatar krumiaa commented on May 20, 2024

This key error is caused by underscores in all the blueprint custom parameters for each DRL algorithm in the UE5 version of mindmaker. They must be removed and replaced with spaces in blueprints. For some reason the new release of the SocketIO json library for UE5 is not processing underscores. I believe I replaced all the underscores in the experimental UE5 release which can be downloaded along with the UE4 version here. https://unrealengine.com/marketplace/en-US/product/neurostudio-self-learning-ai/questions
Please let me know if this fixes the issue.

from mindmaker.

OkMast avatar OkMast commented on May 20, 2024

I downloaded the experimental UE5 release project you have linked above (epic games); that was the one I had used the last time around too. The issue is still the same, and I have attached a video for your reference so we are on the same page regarding the problem.

errorVideo.mp4

I am not sure exactly where I am supposed to fix the underscore problem in the blueprint custom parameters for each DRL algorithm. Maybe if you could go over it step by step in a video or something?

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

from mindmaker.

OkMast avatar OkMast commented on May 20, 2024

As of now, I am just trying to run the cartpole example, which uses PPO2 algorithm.
I have removed all underscores from all structures, and fair enough the error for "_init_setup_model" went away. However, it was replaced by the following error in the activation function parameter:
error_actfunc
Note that I have removed ALL the underscores in all the structures.

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

from mindmaker.

An-nym-us avatar An-nym-us commented on May 20, 2024

Any fix yet, I'm still having the same problems, as the person above, removed all underscores, and followed all other directions listed.

from mindmaker.

OkMast avatar OkMast commented on May 20, 2024

Are any of the other algorithms working when you change it from PPO2 to something else? I have tried a few and they all seemed to work, maybe I zip and share the project files with you to make sure we are both using identical setup, though if you downloaded the UE marketplace version, that should already be the case. What release of UE5 are you using?

I have tried to run different algorithms, none of them worked. I am using 5.0.1 version of UE5. (Python 3.7.0 environment)

perhapse the mindmaker.exe in your content directory is still the older version

This is not possible since I have used another, completely new CPU and environment which had no prior installations of this project or even UE. I installed everything from scratch and then followed your directions exactly.
I also did everything else you have asked about in your second text above.
Maybe if you zip and share your project like you mentioned above on my email: [email protected], and I try and run it on my end

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

will do, sending you a zip to your email. curious to get to the bottom of this

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

UPDATE: Just released a version of this for UE 5.0.2 which can be downloaded from the marketplace. https://www.unrealengine.com/marketplace/en-US/product/neurostudio-self-learning-ai
make sure you are using the updated example files with DRL content, this has _ removed

I'm thinking this may have fixed this issue. Still wasn’t able to replicate but if it now works, please let me know by updating this issue.

from mindmaker.

Malados avatar Malados commented on May 20, 2024

always the same error on my side

from mindmaker.

oshirokn avatar oshirokn commented on May 20, 2024

Same for me too

from mindmaker.

OkMast avatar OkMast commented on May 20, 2024

error in the zip file you emailed:
6thJuneMindmakerError_ss2
The updated version on epic games gives the same error as the 'act_func' error above- that is, after I yet again personally removed all the underscores (that were again not removed for this new version) in all the structs. Tried all the other things you asked me to try too.

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

Was finally able to replicate the issue and hopefully the fix is now up and working. Please try updating again from the marketplace. The issue seems to be that the project files on the marketplace included both the older UE 4.27 version of mindmaker and a version for UE 5, but when one created a new project from UE launcher rather than downloading the zipped project files with both folders, the launcher was defaulting to the UE 4.27 version of mindmaker, and running it inside UE 5. I thought it would automatically use the appropriate version but apparently not. Apologies for that, Im still getting to know the marketplace system and it seems things may have changed with the release of UE 5.

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

circling back to make sure this issue was fixed by the latest update on the marketplace, can anyone comment?

from mindmaker.

oshirokn avatar oshirokn commented on May 20, 2024

Marketplace version works fine for me. Thanks for the update!

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

Great, closing this for now in that case

from mindmaker.

Malados avatar Malados commented on May 20, 2024

Hey, i try to use your update but i have a new error. Maybe my fault, i'm not in my main pc. I thought it was python problem so i uninstall / install and try some tricks but not result. Any idea ?

error

from mindmaker.

OkMast avatar OkMast commented on May 20, 2024

Yes it works fine now, thank you Aaron! :)

Maybe my fault, i'm not in my main pc.

Yeah that happens with me too (the mindmaker.exe file closing immediately) on one of my computers, but it works fine on another. This is probably something related to our setup, or the installed dependencies. I've been trying to fix that issue for a while now with the previous functional version of mindmaker, even reinstalled my entire python and visual studio setup; tell me if you manage to fix it in the future. In the meantime, use another computer.

from mindmaker.

An-nym-us avatar An-nym-us commented on May 20, 2024

I'm having the same error as Malados. What version of python are you using for those that got it to work. Im using python 3.9.

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

This happened for me before and I think its related to Microsoft OpenMPI, since this is required for DDPG. Can download MPI here

https://www.microsoft.com/en-us/download/details.aspx?id=57467

and for python

conda install mpi4py

Please confirm if this is the fix, will publish an update

from mindmaker.

EliasNacef avatar EliasNacef commented on May 20, 2024

Hey ! Just to let you know i had the same problem and installing mpi4py and MPI solved the mindmaker.exe crash

from mindmaker.

An-nym-us avatar An-nym-us commented on May 20, 2024

thank, you, was able to find the link to the MPI. Was able to get mindmaker up and running. Some of the Reinfomrent learning algorithms still do not function while others do. I'm assuming this will get fixed in later updates.

from mindmaker.

Malados avatar Malados commented on May 20, 2024

This happened for me before and I think its related to Microsoft OpenMPI, since this is required for DDPG. Can download MPI here

https://www.microsoft.com/en-us/download/details.aspx?id=57467

and for python

conda install mpi4py

Please confirm if this is the fix, will publish an update

works for me, thx you !

from mindmaker.

Devanshu-singh-VR avatar Devanshu-singh-VR commented on May 20, 2024

I am still have the problem, the mindmaker.exe is still crashing after installing all the stuff.
How "conda install mpi4py" is working? because UE5 uses its own python environment.

Here are the steps I did to run the UE5:

  1. I installed the mindmaker DLR plugin.
  2. I created a new project out of it.
  3. I downloaded the mindmaker learning engine.
    this one -> (MindMaker DRL Engine Single Node (Stable Baselines: A2C, DQN, PPO, ACER, TD3, SAC) - Win64)
  4. then I copy paste all the files to mindmaker folder as written in the mindmaker github.
  5. I installed the Microsoft OpenMPI.
  6. and mpi4py

if there anything still left to do? Kindly let me know

from mindmaker.

krumiaa avatar krumiaa commented on May 20, 2024

from mindmaker.

Devanshu-singh-VR avatar Devanshu-singh-VR commented on May 20, 2024

thanks @krumiaa, I tried the unreal engine 5.1 and its working fine.

The issue was coming in the unreal engine 5.0. But I think now I will use the UE5.1 rather than UE5.0.
Thanks once again.

from mindmaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.