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

Fridge Items dataset prepare JSONL files fails on base_jsonl_converter and voc_jsonl_converter #3344

Open
neilmca-inc opened this issue Aug 9, 2024 · 2 comments
Labels

Comments

@neilmca-inc
Copy link

Operating System

Windows

Version Information

This example - https://github.com/Azure/azureml-examples/blob/main/sdk/python/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/automl-image-object-detection-task-fridge-items.ipynb

... is linked from the official MS Tutorial page on preparing images https://learn.microsoft.com/en-us/azure/machine-learning/tutorial-auto-train-image-models?view=azureml-api-2&tabs=python

When running it fails on base_jsonl_converter and voc_jsonl_converter on step 2.4. Convert annotation file from COCO to JSONL

Steps to reproduce

1 Run the IPYNB file up to step 2.4
2 Fails on ModuleNotFoundError: No module named 'base_jsonl_converter'

Expected behavior

It works

Actual behavior

`{
"name": "ModuleNotFoundError",
"message": "No module named 'base_jsonl_converter'",
"stack": "---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[11], line 2
1 import sys
----> 2 import base_jsonl_converter
3 import voc_jsonl_converter
5 sys.path.insert(0, "../jsonl-conversion/")

ModuleNotFoundError: No module named 'base_jsonl_converter'"
}`

Addition information

I've tried
!pip install base_jsonl_converter
!pip install voc_jsonl_converter
...but these do not work - so assumed that these are imported from somewhere else, but where isn't clear

This is a complicated starter tutorial that so far doesn't work

@neilmca-inc neilmca-inc added the bug label Aug 9, 2024
@marxxxx
Copy link

marxxxx commented Aug 27, 2024

I am struggling at the same step.

@marxxxx
Copy link

marxxxx commented Aug 28, 2024

@neilmca-inc FYI, i got the jsonl conversion working using the following steps

  • clone repository locally
  • install anaconda locally
  • create anaconda environment (using python 3.10)
  • activate anaconda environment
  • install all the dependencies mentioned in the notebook via conda install (various package sources required)
  • install torchvision-cpu (required to run the conversion on my local workstation as i don't have a capable graphic card available)
  • install vscode extensions required to run jupyter notebooks
  • open workbook in vs code
  • change kernel to conda environment created above
  • run the steps for creation (if azure ml is not configured locally, replace uri_folder_data_asset.path with a hardcoded url from the data asset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants