Skip to content

Added notebook for working with PPM images #374

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AshAnand34
Copy link

@AshAnand34 AshAnand34 commented May 14, 2025

Description

This pull request updates the README.md file to include a new tutorial, modifies the automation script to handle multiple file encodings, and updates the corresponding CSV data for the new tutorial. Below are the key changes grouped by theme:

Automation Script Enhancements:

  • Updated the read_lines_from_file function in automation/autogenerate_notebooks_table.py to try multiple encodings (utf-8, latin-1, cp1252) when reading files, and fall back to errors='replace' if all encodings fail. This improves the script's robustness when handling files with unknown or mixed encodings.
  • Ensured the save_lines_to_file function writes files using utf-8 encoding for consistency.

Data Synchronization:

  • Added a new entry for the "Working with PPM Image Format in Autodistill" tutorial in automation/notebooks-table-data.csv. This entry includes metadata such as the tutorial's title, associated blog post, and GitHub repository link.

Autodistill PPM support

  • The PPM support for the load_image function in autodistill has been included in autodistill#191

Related Issue: #339

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Docs

  • Docs updated? What were the changes:
    Added a new tutorial titled "Working with PPM Image Format in Autodistill" to the README.md file, increasing the total number of tutorials from 21 to 22. The tutorial includes links to Colab, Kaggle, a blog post, and the associated GitHub repository. [1] [2]

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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

Successfully merging this pull request may close these issues.

1 participant