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

Add omniglot with new API #5459

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

vballoli
Copy link
Contributor

PR for #5346

@facebook-github-bot
Copy link

Hi @vballoli!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

facebook-github-bot commented Feb 23, 2022

💊 CI failures summary and remediations

As of commit 78c2abc (more details on the Dr. CI page):


  • 3/3 failures introduced in this PR

🕵️ 2 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build type_check_python (1/2)

Step: " Install torchvision in editable mode
" (full log | diagnosis details | 🔁 rerun)

�[31mERROR: Command errored out with exit statu...refix= Check the logs for full command output.�[0m
      431 |         at::ScalarType::Byte, iter.dtype(), "upsample_generic_Nd", [&] {
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      432 |           ti_cpu_upsample_generic_aa<scalar_t, index_t, out_ndims>(
          |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      433 |               iter, interp_size);
          |               ~~~~~~~~~~~~~~~~~~~
      434 |         });
          |         ~~
    error: command 'gcc' failed with exit status 1
    ----------------------------------------�[0m
�[31mERROR: Command errored out with exit status 1: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/circleci/project/setup.py'"'"'; __file__='"'"'/home/circleci/project/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.�[0m
�[33mWARNING: You are using pip version 21.2.4; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.�[0m


Exited with code exit status 1

See CircleCI build unittest_prototype (2/2)

Step: " Install torchvision in editable mode
" (full log | diagnosis details | 🔁 rerun)

�[31mERROR: Command errored out with exit statu...refix= Check the logs for full command output.�[0m
      431 |         at::ScalarType::Byte, iter.dtype(), "upsample_generic_Nd", [&] {
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      432 |           ti_cpu_upsample_generic_aa<scalar_t, index_t, out_ndims>(
          |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      433 |               iter, interp_size);
          |               ~~~~~~~~~~~~~~~~~~~
      434 |         });
          |         ~~
    error: command 'gcc' failed with exit status 1
    ----------------------------------------�[0m
�[31mERROR: Command errored out with exit status 1: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/circleci/project/setup.py'"'"'; __file__='"'"'/home/circleci/project/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.�[0m
�[33mWARNING: You are using pip version 21.2.4; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.�[0m


Exited with code exit status 1


1 failure not recognized by patterns:

Job Step Action
CircleCI unittest_torchhub Install torchvision in editable mode
🔁 rerun

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@pmeier pmeier linked an issue Feb 23, 2022 that may be closed by this pull request
@vballoli
Copy link
Contributor Author

@pmeier I'm slightly confused about the mocks error which completely slipped my mind when pushing this code. How is the DatasetConfig passed here (I believe this is something I missed causing the error AttributeError: 'DatasetConfig' object has no attribute 'split' )

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

@vballoli You forgot to add valid_options to the DatasetInfo. Without that, config is just an empty namespace.

Comment on lines 26 to 28
return DatasetInfo(
"omniglot", type=DatasetType.RAW, categories=None, homepage="https://github.com/brendenlake/omniglot"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return DatasetInfo(
"omniglot", type=DatasetType.RAW, categories=None, homepage="https://github.com/brendenlake/omniglot"
)
return DatasetInfo(
"omniglot", type=DatasetType.RAW, categories=None, homepage="https://github.com/brendenlake/omniglot",
valid_options=dict(split=("background", "evaluation")),
)

@vballoli
Copy link
Contributor Author

Got busy again, sorry for the delay in fixing this error. Will have an update in a day or 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Omniglot
3 participants