-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
[Feature] Support CLI arguments for passing the configuration files #201
Comments
Hi, I am interested in doing this, Rather I have started work on it, Since this my first time doing something like this, will take some time, but so far have figured out basic plan.
|
Ok, So I am able to pass config.json and template.json file via CLI, but the evaluationFile for example, sheet1.jpg, on passing it throws the error The traceback for it is below. However, The code works perfectly if I place the jpg file in inputs folder and config and template are passed through CLI. |
@VidhuSarwal, could you try it with other samples as well and check if they produce the same error? . Please join Discord for further discussion. |
@VidhuSarwal possible to discuss over discord? I've created a thread here https://discord.com/channels/590134763784896514/1269271619398930455/1269271648318652466 Also would like to get your introduction over there :) |
@VidhuSarwal please the check the link from Readme. |
@Udayraj123 It seems this issue is still open, please assign it to me so I can implement the required feature. |
No problem, @Usool-Data-Science, please share an approach you'd like to try here. I'll assign you the issue |
We will extend the main.py script to handle additional command-line arguments using the popular |
Assigned you the ticket 👍 |
@Udayraj123 Do you know how I can use this application from within my WSL, I have installed all dependencies but when I tried to run the main.py I kept getting this error despite all my efforts to make it work. I am running the WSL from within Windows 11 with the following config: Distributor ID: Ubuntu |
@Usool-Data-Science The issue arises because the screen wasn't detected on WSL. I've pushed a fix for this in my branch in the utils/interaction.py file, allowing it to run properly on Container. You can check out the changes here: Commit f94fb6d. this may also help WSL GUI |
@palash018 yes mate, I am aware of that, I need help on how to direct it to use the windows screen instead |
Hey I was working on this issue, Almost done with it too. I didnt check github for some time. Am done with argument passing, currently debugging the issue with UTF-8 encoding in JSON. |
@VidhuSarwal |
Is your feature request related to a problem? Please describe.
We should support CLI arguments for passing the configuration files such as template.json, config.json and evaluation.json
Describe the solution you'd like
We can use these names for the args
Describe alternatives you've considered
As of now we need to make sure the file exists in the
--inputDir
folder.Additional context
This would be a small change for beginners to understand how directory parsing works in OMRChecker currently.
The text was updated successfully, but these errors were encountered: