问题标签 [flow-project]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
162 浏览

sumo - 在运行'example/sumo/grid.py'.FatalFlowError:'没有足够的车辆产生!糟糕的开始?

我想在网格例子上模拟一个堵塞模拟,所以我尝试增加行数和列数或增加num_cars_left/nums_cars_right/nums_cars_top/nums_cars_bot的数量。例如:

所以,然后通过命令运行它,有一个错误:

然后我检查了 'flow/flow/envs/base_env.py' 有一个描述:

所以,我的问题是:如果我想在网格上模拟堵车,如果行数、列数、nums_cars_left(right/bot/top) 有限制,该怎么办?

0 投票
1 回答
83 浏览

flow-project - 如何在流上使用 RL 算法?

我想使用 RL 算法来训练我的项目。但是我在流目录上找不到,我可以使用多少种算法,并且这些算法有一些解释文档,或者如果我想创建自定义算法,该怎么做?

0 投票
1 回答
62 浏览

sumo - flow/tutorials/tutorial09_environments.ipynb的“rl_actions”是什么意思

当我学习教程 9 时,我对 rl_actions 感到困惑。因为在程序上,rl_actions是没有初始化和定义的。为什么 _apply_rl_actions 函数和 compute_reward 函数都有一个 'rl_actions' 参数?我还检查了车辆内核代码,关于 apply_acceleration 函数。原来的一个是:

0 投票
1 回答
37 浏览

flow-project - FLOW中关于MLP策略的问题

对于控制自主控制的 MLP 策略,如果我们只使用当前的观测值(自动驾驶车辆的速度、前车的速度和相对距离),或者在将当前的观测值输入到 MLP 之前,我们必须使用其他一些处理方法政策。由于问题是部分观察到的,我不确定我是否只能使用当前的观察结果。

0 投票
1 回答
106 浏览

flow-project - 如何在流程中使用变道模型SL2015?

当我尝试使用 SL2015 作为车道变更模型运行任何场景(例如循环或高速公路)时,我收到以下错误:错误:值 '0' 必须大于或等于 minExclusive facet value '0' In file 'X/flow/ flow/core/kernel/scenario/debug/cfg/highway_example_20190725-1726581564100818.2933977.add.xml' 在第 4/430 行/列。

我已经使用“lateral_resolution”启用了子通道。如果我使用车道跳跃的 LC2013,那么一切正常。只有平滑的换道配置会导致错误。下面是生成的 add.xml 文件。

0 投票
0 回答
62 浏览

flow-project - 运行/example/rllib/green_wave.py时如何解决tensorflow版本问题

当我尝试运行 /example/rllib/green_wave.py 时。我遇到一种情况,程序卡住了。它在终端上的描述是:

我在网站上搜索,sb说原因是tensorflow的版本太旧,所以我卸载了它,并安装了更高的版本。但是当我再次运行该程序时,它说找不到 tensorflow 包。于是我使用 [conda update --all] 命令,再次运行,还是一样的情况,如何解决?

0 投票
1 回答
47 浏览

flow-project - How is FLOW currently dealing with clipping actions, squash_to_range, no_final_linear

I am confused about the way FLOW is meant to make sure the policy network output is matched to the action space limits.

In the version of rllib/ray I installed following the installation guidelines, I see two different ways of dealing with this:

1) squash_to_range option of model: this is available in the code, but:

2) clip_actions: This is available, but the flow examples include the following line:

Looking at the current version of rllib/ray, I see a new option:

3) no_final_linear

The example code provided within flow clips the fcnet output to the box limits of the action space. Debugging the raw network output I get, it contains values far outside the action space range.

Did I miss something when implementing my own experiments? I thought defining the Box for the action space was meant to be sufficient.

It seems like a bad idea to me to just clip the actions, I would rather prefer to use the no_final_linear option.

What is your take on this?

What are the implications of switching to the current version of ray? (mine is ray 0.6.1 as in the conda installation environement file)

What are your plans to fix the "temporary ray bug" issue?

Thanks for any hints

0 投票
1 回答
78 浏览

flow-project - Flow DepartLane 定义异常

在运行同一环境的许多集之后,我经常收到这个错误,告诉我departLane 定义无效:

错误:回答命令 0xc4 错误:车辆“host_0”的出发车道定义无效;必须是(“随机”、“免费”、“允许”、“最佳”、“第一”或 int>=0)之一

我已经尝试过调试它,但我从未发送任何不允许的值(主要是添加具有离开车道 = 0 的车辆)。它是否与离开车道本身有关?

0 投票
2 回答
91 浏览

flow-project - 增加网格场景的车道

我正在尝试修改 Grid Scenario 模板。更改 Horizo​​ntal_lanes 和 vertical_lanes 时,代码可以正常工作。

问题是我无法将车辆放置在其他车道上。每次修改 grid.py 时,我都会遇到不同类型的错误。

有没有更通用的网格场景或其他东西?

谢谢你。

0 投票
1 回答
70 浏览

flow-project - 基于多智能体的Get_state()函数问题

@Ashkan 我看到了你对那个问题的回答(How to write Get_state() return based in multi-agent based on agent-id?

你给出了一些示例代码: def get_state(self):

我对您的代码有一些疑问:

  1. 在'for'循环中,你使用了一次交集和边,没有其他的交集和边的用法,这里的交集和边的作用是什么?
  2. 在 dist_to_intesec[] 上,基于 green_wave_env.py,它会返回所有车辆到所有路口的距离,而不是返回车辆到特殊/个人路口的距离,我不太了解你的 dist_to_intersec[],你能解释一下?

  3. 如何查看get_state()的数据,比如我要获取dist_to_intersec的数据。

在我的项目中:基于网格网络,我想在一个水平时间获得一个交叉路口的圆圈(例如,该圆圈的半径为 100m,交叉路口是中心点)上有多少车辆。所以你的回复对我有很大帮助。@阿什坎