-
Notifications
You must be signed in to change notification settings - Fork 12
docs(coco): update readme.md #1046
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
Conversation
@@ -0,0 +1,74 @@ | |||
## Description | |||
This read me will guide you on how to create a COCO file using the utility script for Google Drive and DropBox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This read me will guide you on how to create a COCO file using the utility script for Google Drive and DropBox | |
This readme will guide you on how to create a COCO file using the utility script for Google Drive and DropBox |
- Click on "New Project" | ||
- Rename the project name to your desired project name | ||
- Paste the utility script | ||
- Replace any existing default code the code from this utility file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
- Create a Google Apps script project | ||
- Go to https://script.google.com | ||
- Click on "New Project" | ||
- Rename the project name to your desired project name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your-project-name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
- Rename the project name to your desired project name | ||
- Paste the utility script | ||
- Replace any existing default code the code from this utility file | ||
- Replace Placeholder Values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Replace Placeholder Values | |
- Replace placeholder values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
- Press Run | ||
- Accept the authorization prompts the first time you run the script | ||
- View COCO JSON Output | ||
- Go to View > Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Go to View > Logs | |
- Go to `View > Logs` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added bold **
- Accept the authorization prompts the first time you run the script | ||
- View COCO JSON Output | ||
- Go to View > Logs | ||
- Copy the Google Drive URL where the coco file is created and generated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed created
- Update `Permission type` | ||
- Go to the app settings | ||
- Click **Scoped App** | ||
- Tick the following |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
permissions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
- Install uv on your system: https://docs.astral.sh/uv/getting-started/installation/ | ||
- Download the [generate_coco_from_dropbox.py](./generate_coco_from_dropbox.py) script | ||
- Create a DropBox folder and upload images | ||
- Your image files should be stored in a public DropBox folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe not. please check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line 58
uv run generate_coco_dropbox.py "DROPBOX_ACCESS_TOKEN" "FOLDER_PATHNAME_IN_DROPBOX" "DESTINATION_EXPORT_FILE_NAME_IN_DROPBOX" | ||
|
||
# Example | ||
uv run generate_coco_dropbox.py sl.yourAccessTokenHere “/COCO TEST” “coco_export.json” |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uv run generate_coco_dropbox.py sl.yourAccessTokenHere “/COCO TEST” “coco_export.json” | |
uv run generate_coco_dropbox.py sl.yourAccessTokenHere "/COCO TEST" "coco_export.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.