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

Assorted improvements #1894

Merged
merged 3 commits into from
Mar 27, 2023
Merged

Conversation

swsuggs
Copy link
Contributor

@swsuggs swsuggs commented Mar 3, 2023

A few small unrelated improvements.

  1. Raise an error if num-eval-batches is too large for dataset, fixing [ENHANCEMENT] Fail gracefully when num-eval-batches > ds.size #1893
  2. Correct some docstrings and error messages for a few carla datasets
  3. Add a decorator to the audio resnet model, cutting training time in half

@swsuggs swsuggs requested a review from lcadalzo March 16, 2023 11:55
@@ -79,6 +79,11 @@ def load_dataset(dataset_config, *args, num_batches=None, check_run=False, **kwa
if check_run:
return EvalGenerator(dataset, num_eval_batches=1)
if num_batches:
if num_batches > dataset.batches_per_epoch:
Copy link
Contributor

Choose a reason for hiding this comment

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

I tested that this works, but this function has become obsolete on the tfdsv4 branch in lieu of this one. I'd suggest also incorporating this change on a branch based off tfdsv4

Copy link
Contributor

Choose a reason for hiding this comment

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

this would occur in a separate PR into tfdsv4, though, so I'm good merging this one

Copy link
Contributor

@lcadalzo lcadalzo left a comment

Choose a reason for hiding this comment

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

see comment, but LGTM

@lcadalzo lcadalzo merged commit f98e9ab into twosixlabs:develop Mar 27, 2023
@swsuggs swsuggs deleted the assorted-improvements branch May 30, 2023 11:46
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.

2 participants