GithubHelp home page GithubHelp logo

Comments (8)

BigZhaoHYZ avatar BigZhaoHYZ commented on August 29, 2024

同求,其次运行文件中的run_maacktr.py和run_mappo.py都会以下错误,可以提供一下解决方案吗?感谢
ERROR:root:Can not find checkpoint for ./results/Sep_19_12_22_29/models/
H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\single_agent\kfac.py:144: UserWarning: volatile was removed (Variable.volatile is always False)
if input[0].volatile == False and self.steps % self.Ts == 0:
H:\ProgramData\Anaconda3\envs\MARL_CAVs-main\lib\site-packages\torch\nn\modules\module.py:795: UserWarning: Using a non-full backward hook when the forward contains multiple autograd Nodes is deprecated and will be removed in future versions. This hook will be missing some grad_input. Please use register_full_backward_hook to get the documented behavior.
warnings.warn("Using a non-full backward hook when the forward contains multiple autograd Nodes "
H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\single_agent\Model_common.py:62: UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
act = self.actor_output_act(self.actor_linear(out))
Traceback (most recent call last):
File "H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\run_maacktr.py", line 217, in
train(args)
File "H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\run_maacktr.py", line 128, in train
maacktr.interact()
File "H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\MAACKTR.py", line 96, in interact
actions.append([index_to_one_hot(a, self.action_dim) for a in action])
File "H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\MAACKTR.py", line 96, in
actions.append([index_to_one_hot(a, self.action_dim) for a in action])
File "H:\Code-of-study\PaperCode\MARL_CAVs-main\MARL\common\utils.py", line 37, in index_to_one_hot
one_hot = np.zeros((len(index), dim))
TypeError: object of type 'numpy.int32' has no len()

from marl_cavs.

DongChen06 avatar DongChen06 commented on August 29, 2024

@Jonyian @BigZhaoHYZ , please find the codes at: https://drive.google.com/drive/folders/1CPOOYSQzqc0_XUr8durNWDUBv66PUHaM

from marl_cavs.

DongChen06 avatar DongChen06 commented on August 29, 2024

@BigZhaoHYZ , please look at the solution at: #4. The reason may be the mismatch of the libs.

from marl_cavs.

Jonyian avatar Jonyian commented on August 29, 2024

Thank you very much for your reply. I also want to ask you a question. Is the baseline of your paper the run_ma2c.py in the folder?

from marl_cavs.

DongChen06 avatar DongChen06 commented on August 29, 2024

You can change the settings in configs.ini. For example, you can set safety_gurantee as False.
image;

There are also other settings you can play with:

; concurrent
training_strategy = concurrent
actor_hidden_size = 128
critic_hidden_size = 128
shared_network = True
action_masking = True
state_split = True
; "greedy", "regionalR", "global_R"
reward_type = regionalR

from marl_cavs.

BigZhaoHYZ avatar BigZhaoHYZ commented on August 29, 2024

safety_guarantee = True n_step = 7
你好,运行run_ma2c.py 加上configs.ini就是论文中的“基线+Tn”吗?感谢回复! @DongChen06

from marl_cavs.

DongChen06 avatar DongChen06 commented on August 29, 2024

@BigZhaoHYZ Yes, you are right

from marl_cavs.

Jonyian avatar Jonyian commented on August 29, 2024

Thank you very much for your reply

from marl_cavs.

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.