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

where to find your cityflow "roadnetLogFile"? #2

Open
rika1021 opened this issue May 24, 2022 · 10 comments
Open

where to find your cityflow "roadnetLogFile"? #2

rika1021 opened this issue May 24, 2022 · 10 comments

Comments

@rika1021
Copy link

Hi
Would like to ask how you use cityflow's replay to observe the map?

@rika1021
Copy link
Author

Because the replay file is not getting generated,after setting "SAVEREPLAY": "True".
Can you please guide me how to correctly generate the replay file?

Thank you

@LiangZhang1996
Copy link
Owner

You must set proper save path, additional folder of replay log cannot be construct a proper path.

@rika1021
Copy link
Author

the path I set now is
"roadnetLogFile": "frontend/web/roadnetLogFile.json",
"replayLogFile": "frontend/web/replayLogFile.txt"

Before I run the code, I have created this folder and file, and the data location is as shown in the figure.

image

Is there anything I did wrong or didn't notice?

Thanks.

@LiangZhang1996
Copy link
Owner

You have prepared the replay file.

Now, you should use the tools in CityFlow to observe the map.

Get the source code of CityFlow and find the file cityflow/frontend/index.htm, open it with browser and load the replay file, you will see the map.

@rika1021
Copy link
Author

Sorry, I didn't describe clearly.

These two files as shown in that figure (roadnetLogFile, replayLogFile) were empty files created by myself, but after running run_colight, my two files were still empty.

The difficulty I am currently encountering is that I cannot successfully create roadnetLogFile, replayLogFile.

Really appreciate your reply.

@rika1021
Copy link
Author

rika1021 commented Jun 8, 2022

Hi!
I have already solved those question. Thanks a lot.

I have another replay question to cityflow/frontend/index.htm.

On this html page, after I click on my log files, I did't see the upload.
Is it because the file is too large?
Or continue to wait until the upload is complete?
But the page doesn't show any notifications or reminders.

Have you encountered this problem?
thank you so much for your asking!!

@rika1021
Copy link
Author

rika1021 commented Jun 8, 2022

hi,it seems I just see the wrong place!
The files have been successfully uploaded, but they will not be displayed in the box, but I can see my file names by moving the mouse over it.

Next I will try to continue to solve why can't start successfully after pressing the start button.

thanks!

@LiangZhang1996
Copy link
Owner

There is a demonstration of different method at: https://www.bilibili.com/video/BV16u411D78B.
You can refer to it as an example.

@rika1021
Copy link
Author

Thank you very much!
I have been able to run cityflow successfully!

@Wangxr126
Copy link

How did you solve this problem? Because I can't find roadnetLogFile, replayLogFilefile either

Sorry, I didn't describe clearly.

These two files as shown in that figure (roadnetLogFile, replayLogFile) were empty files created by myself, but after running run_colight, my two files were still empty.

The difficulty I am currently encountering is that I cannot successfully create roadnetLogFile, replayLogFile.

Really appreciate your reply.

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

3 participants