Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_advanced_mplight.py 报错 #26

Open
baibingren opened this issue Nov 25, 2024 · 1 comment
Open

run_advanced_mplight.py 报错 #26

baibingren opened this issue Nov 25, 2024 · 1 comment

Comments

@baibingren
Copy link

Process Process-1:
Traceback (most recent call last):
File "/home/mellon/anaconda3/envs/llmlight/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/mellon/anaconda3/envs/llmlight/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/mellon/mellon/repo/LLMTSCS/utils/utils.py", line 33, in pipeline_wrapper
round_results = ppl.run(round=i, multi_process=False)
File "/home/mellon/mellon/repo/LLMTSCS/utils/pipeline.py", line 155, in run
generator_wrapper(cnt_round=cnt_round,
File "/home/mellon/mellon/repo/LLMTSCS/utils/pipeline.py", line 69, in generator_wrapper
generator = Generator(cnt_round=cnt_round,
File "/home/mellon/mellon/repo/LLMTSCS/utils/generator.py", line 30, in init
agent = DIC_AGENTS[agent_name](
File "/home/mellon/mellon/repo/LLMTSCS/models/network_agent.py", line 35, in init
self.q_network = self.build_network()
File "/home/mellon/mellon/repo/LLMTSCS/models/advanced_mplight_agent.py", line 28, in build_network
_p = Activation('sigmoid')(Embedding(2, 4, input_length=8)(dic_input_node["feat1"]))
File "/home/mellon/anaconda3/envs/llmlight/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/mellon/anaconda3/envs/llmlight/lib/python3.9/site-packages/google/protobuf/internal/containers.py", line 70, in getitem
return self._values[key]
TypeError: list indices must be integers or slices, not str
traffic finish join 0

我本地运行run_advanced_mplight.py时报这个错误,是什么包的版本不对吗?

@SQLai2099
Copy link
Collaborator

不好意思,我没遇到过这个错。请检查包的版本并尝试用debug模式找一下原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants