CityFlow icon indicating copy to clipboard operation
CityFlow copied to clipboard

Replay doesn't show cars

Open traderforce opened this issue 3 years ago • 15 comments

image I run a example test program and I want to see the simulation situation on the index.html. The signal changes can be seen but there are no cars on the road. Can anybody say what the possible reasons are? Thanks!

traderforce avatar Apr 19 '21 08:04 traderforce

I have the same problem

luxueliang1996 avatar Apr 20 '21 12:04 luxueliang1996

I have solved this problem. It means the replay.txt file which you generate by your own model lacks of two important values: the length and the width of this vehicle. You can compare the replay.txt you generate with the example files. Good luck!

08doudou avatar May 04 '21 05:05 08doudou

I have solved this problem. It means the replay.txt file which you generate by your own model lacks of two important values: the length and the width of this vehicle. You can compare the replay.txt you generate with the example files. Good luck!

I also got this, thanks for your reply. It's really wierd.

traderforce avatar May 10 '21 03:05 traderforce

@traderforce @luxueliang1996 @traderforce Did you solved it?

Fly-Pluche avatar Feb 21 '22 13:02 Fly-Pluche

I have the same problem

Hi, I also had this problem, got roadnetLogFile and replayLogFile, and the road, the number of vehicles, the current step is displayed correctly, but, the same vehicles are not displayed in the replay, I checked the page, it is consistent with yours, in google There is only one warning in the browser: DevTools failed to load source map: Could not load content for file:///D:/Harry/WangZhiwen/CityFlow-master/CityFlow-master/frontend/pixi.min.js.map : System error: net::ERR_FILE_NOT_FOUND, before that, I have downloaded the js to the local and modified the script reference path in html, otherwise the browser will explode the error of net::ERR_FILE_NOT_FOUND, I hope to get your advice, maybe What are the reasons why the vehicle does not show up?

MPHarryZhang avatar May 14 '22 03:05 MPHarryZhang

我已经解决了这个问题。这意味着你自己的模型生成的replay.txt文件缺少两个重要的值:这辆车的长度和宽度。您可以将生成的 replay.txt 与示例文件进行比较。祝你好运!

Hello, can you tell me how to solve this problem?

MPHarryZhang avatar May 15 '22 05:05 MPHarryZhang

I have solved this problem. It means the replay.txt file which you generate by your own model lacks of two important values: the length and the width of this vehicle. You can compare the replay.txt you generate with the example files. Good luck!

I also got this, thanks for your reply. It's really wierd.

Hello, I also have this problem. Can you tell me how to solve it through codes?

MPHarryZhang avatar May 15 '22 08:05 MPHarryZhang

Did you specify length and width in flow.json file?

zhc134 avatar Oct 20 '22 03:10 zhc134

您是否在文件中指定了长度和宽度flow.json

Yes, the flow.json file has width and length. And I found that some algorithms run the results to display the vehicle normally, and some don't.

MPHarryZhang avatar Oct 20 '22 03:10 MPHarryZhang

您是否在文件中指定了长度和宽度flow.json

Yes, the flow.json file has width and length. And I found that some algorithms run the results to display the vehicle normally, and some don't.

Could you please give more detail about what kind of algorithm generates abnormal behavior?

zhc134 avatar Oct 20 '22 03:10 zhc134

您是否在文件中指定了长度和内容flow.json

是的,flow.json 文件有宽度和长度。我发现有些算法运行结果可以正常显示车辆,有些则不能。

您能否详细说明哪种算法会产生异常行为?

When I run CoLight, CoLight can't display the vehicle, but MPLight can do it normally. Now my research is mainly running these two algorithms.

MPHarryZhang avatar Oct 20 '22 03:10 MPHarryZhang

Weird, different algorithms should not influence replay behavior, there might be some problem in Python code or settings in config file, e.g. saveReplay should be true.

zhc134 avatar Oct 20 '22 03:10 zhc134

Weird, different algorithms should not influence replay behavior, there might be some problem in Python code or settings in config file, e.g. saveReplay should be true.

I'm also confused, the CoLight replay behavior is normal, it's just missing the display vehicle, but the length and width are valuable, which is confusing to me. I like this research direction very much, which is in progress as my master's research direction. I want a gym version of cityflow environment for multi-intersection traffic signal control. I don't know if there is a reusable work project, or I need to do it myself Work?

MPHarryZhang avatar Oct 20 '22 03:10 MPHarryZhang

checkout this repo https://github.com/zhc134/tlc-baselines

zhc134 avatar Oct 20 '22 04:10 zhc134

checkout this repo https://github.com/zhc134/tlc-baselines

Thank you very much.

MPHarryZhang avatar Oct 20 '22 05:10 MPHarryZhang