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

controller.json in the data generation folder #5

Open
thaolmk54 opened this issue Mar 16, 2022 · 5 comments
Open

controller.json in the data generation folder #5

thaolmk54 opened this issue Mar 16, 2022 · 5 comments

Comments

@thaolmk54
Copy link

Hi there,

Thank you for the interesting work. I am wondering if the controller.json file in the data generation folder is missing? I would appreciate if you can provide a bit more details on how to run the simulator.

Kind regards,
Th-

@shamilatesoglu
Copy link
Member

shamilatesoglu commented Mar 16, 2022

Hi!

Thanks for pointing that out. Will provide better explanations about that.

I can say this, the controller.json files are automatically generated by scripts inside question_generation folder and are read by the simulation runner executable built from the project at data_generation folder. All you have to do to generate a dataset is to built this C++ project into a simulation runner executable, and supply its location to the dataset generation config file and run Python scripts in question_generation folder.

Sample dataset generation framework usage can be accessed here. Sample config files for dataset generation can be viewed here. For running a single simulation instance to generate 1 video and its questions (without dataset balancing or other post-processing), refer to here.

If you just want to run simulation runner without the question generation step, sample controller JSON file is like below:

{
    "simulationID": 1,
    "offline": false,
    "outputVideoPath": "output.mpg",
    "outputJSONPath": "output.json",
    "width": 256,
    "height": 256,
    "inputScenePath":  "",  // This is for replaying the same scene by using its output
    "stepCount": 600
}

Which then, you would run like this:

$ ./Testbed controller.json

Let us know if you have any questions.

Kind regards,
Samil

P.S. I will also provide build instructions for the simulation runner.

@thaolmk54
Copy link
Author

Thank you for your reply.

May I know which FFmpeg have you used? Apparently, the code does not work with the latest version of ffmpeg. Could you please send me a copy of your FFmpeg if possible?

@thaolmk54
Copy link
Author

Also, I still have no luck in building Testbed as I'm facing some missing headers such as Test.h. I'm using Linux. I would appreciate if you can help me identify the problem. Many thanks in advance!

@ilkerkesen
Copy link
Collaborator

@shamilatesoglu could you please take a look at this again? I ran into the same problem also as well, where I couldn't simply build the project due to lack of the Test.h file.

@shamilatesoglu
Copy link
Member

Hi again, it was on my mind, but I was really busy these days. I will look into it as soon as possible.

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