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

Replay doesn't show cars #124

Open
traderforce opened this issue Apr 19, 2021 · 15 comments
Open

Replay doesn't show cars #124

traderforce opened this issue Apr 19, 2021 · 15 comments

Comments

@traderforce
Copy link

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 traderforce changed the title replay doesn't show cars Replay doesn't show cars Apr 19, 2021
@luxueliang1996
Copy link

I have the same problem

@08doudou
Copy link

08doudou commented May 4, 2021

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!

@traderforce
Copy link
Author

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.

@Fly-Pluche
Copy link

@traderforce @luxueliang1996 @traderforce Did you solved it?

@MPHarryZhang
Copy link

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
Copy link

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

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

@MPHarryZhang
Copy link

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?

@zhc134
Copy link
Member

zhc134 commented Oct 20, 2022

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

@MPHarryZhang
Copy link

您是否在文件中指定了长度和宽度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.

@zhc134
Copy link
Member

zhc134 commented Oct 20, 2022

您是否在文件中指定了长度和宽度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?

@MPHarryZhang
Copy link

您是否在文件中指定了长度和内容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.

@zhc134
Copy link
Member

zhc134 commented Oct 20, 2022

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.

@MPHarryZhang
Copy link

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?

@zhc134
Copy link
Member

zhc134 commented Oct 20, 2022

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

@MPHarryZhang
Copy link

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

Thank you very much.

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

6 participants