Skip to content

A few typos in the quickstart.rst#66

Merged
GuillaumeLeclerc merged 2 commits intolibffcv:mainfrom
seva100:patch-1
Jan 21, 2022
Merged

A few typos in the quickstart.rst#66
GuillaumeLeclerc merged 2 commits intolibffcv:mainfrom
seva100:patch-1

Conversation

@seva100
Copy link
Copy Markdown
Contributor

@seva100 seva100 commented Jan 20, 2022

A few typos corrections for the first snippet:

  1. A syntax mistake {max_resolution=256, jpeg_quality=jpeg_quality} (should be either dict(max_resolution=256, jpeg_quality=jpeg_quality) or {'max_resolution': 256, 'jpeg_quality': jpeg_quality})
  2. A typo in writer.from_indexed_dataset(ds) -- perhaps should be my_dataset not ds.

A few typos corrections for the first snippet:
1) A syntax mistake {max_resolution=256, jpeg_quality=jpeg_quality} (should be either dict(max_resolution=256, jpeg_quality=jpeg_quality) or {'max_resolution': 256, 'jpeg_quality': jpeg_quality})
2) A typo in writer.from_indexed_dataset(ds) -- perhaps should be my_dataset not ds.
@GuillaumeLeclerc
Copy link
Copy Markdown
Collaborator

@andrewilyas I think the fix should be to remove the braces not using dict right ?

Copy link
Copy Markdown
Contributor

@andrewilyas andrewilyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 21, I believe the dict() should be removed altogether, and the arguments passed directly to RGBImageField

@seva100
Copy link
Copy Markdown
Contributor Author

seva100 commented Jan 21, 2022

@andrewilyas I've updated that in the last commit.

@GuillaumeLeclerc
Copy link
Copy Markdown
Collaborator

Looks great! Thank you so much for contributing

@GuillaumeLeclerc GuillaumeLeclerc merged commit d040abb into libffcv:main Jan 21, 2022
@seva100 seva100 deleted the patch-1 branch January 21, 2022 12:34
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.

3 participants