diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5fde036..09a043d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -18,12 +18,11 @@ jobs: - name: Run Ultralytics Formatting uses: ultralytics/actions@main with: - token: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated + token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated labels: true # autolabel issues and PRs python: true # format Python code and docstrings prettier: true # format YAML, JSON, Markdown and CSS spelling: true # check spelling links: false # check broken links summary: true # print PR summary with GPT4o (requires 'openai_api_key') - openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }} - openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }} + openai_api_key: ${{ secrets.OPENAI_API_KEY }} diff --git a/README.md b/README.md index f7c42f9..1f716e6 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
-Ultralytics logo +Ultralytics logo # 🚀 Introduction @@ -7,7 +7,7 @@ Welcome to the [COCO2YOLO](https://github.com/ultralytics/JSON2YOLO) repository! This process is essential for machine learning practitioners looking to train object detection models using the Darknet framework. Our code is flexible and can be utilized across various platforms including Linux, MacOS, and Windows. -[![Ultralytics Actions](https://github.com/ultralytics/JSON2YOLO/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/JSON2YOLO/actions/workflows/format.yml) Discord Ultralytics Forums Ultralytics Reddit +[![Ultralytics Actions](https://github.com/ultralytics/JSON2YOLO/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/JSON2YOLO/actions/workflows/format.yml) Discord Ultralytics Forums Ultralytics Reddit # ⚙️ Requirements @@ -25,7 +25,7 @@ If you find our tool useful for your research or development, please consider ci # 🤝 Contribute -We welcome contributions from the community! Whether you're fixing bugs, adding new features, or improving documentation, your input is invaluable. Take a look at our [Contributing Guide](https://docs.ultralytics.com/help/contributing) to get started. Also, we'd love to hear about your experience with Ultralytics products. Please consider filling out our [Survey](https://www.ultralytics.com/survey?utm_source=github&utm_medium=social&utm_campaign=Survey). A huge 🙏 and thank you to all of our contributors! +We welcome contributions from the community! Whether you're fixing bugs, adding new features, or improving documentation, your input is invaluable. Take a look at our [Contributing Guide](https://docs.ultralytics.com/help/contributing/) to get started. Also, we'd love to hear about your experience with Ultralytics products. Please consider filling out our [Survey](https://www.ultralytics.com/survey?utm_source=github&utm_medium=social&utm_campaign=Survey). A huge 🙏 and thank you to all of our contributors! @@ -57,5 +57,5 @@ For bug reports, feature requests, and contributions, head to [GitHub Issues](ht space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord diff --git a/utils.py b/utils.py index 61bc047..170733b 100644 --- a/utils.py +++ b/utils.py @@ -153,7 +153,7 @@ def flatten_recursive_folders(path="../../Downloads/data/sm4/"): # from utils i stem, suffix = f.stem, f.suffix if suffix.lower()[1:] in img_formats: n += 1 - stem_new = f"{n:g}_" + stem + stem_new = f"{n:g}_{stem}" image_new = nidir / (stem_new + suffix) # converts all formats to *.jpg json_new = njdir / f"{stem_new}.json"