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

coremltools-8.0b2 requires torchvision #2318

Open
atiorh opened this issue Aug 22, 2024 · 1 comment
Open

coremltools-8.0b2 requires torchvision #2318

atiorh opened this issue Aug 22, 2024 · 1 comment
Assignees
Labels
bug Unexpected behaviour that should be corrected (type)

Comments

@atiorh
Copy link
Contributor

atiorh commented Aug 22, 2024

🐞Describing the bug

It looks like coremltools now requires torchvision. Is this expected?

Stack Trace

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "conda/lib/python3.11/site-packages/coremltools/__init__.py", line 97, in <module>
    from . import converters, models, optimize, proto
...
  File ".conda/lib/python3.11/site-packages/coremltools/optimize/torch/_utils/graph_utils.py", line 14, in <module>
    import torchvision as _torchvision
ModuleNotFoundError: No module named 'torchvision'

To Reproduce

conda create -n repro python=3.11 -y && conda activate && pip install coremltools==8.0b2 && python -c "import coremltools as ct"

System environment (please complete the following information):

  • coremltools version: 8.0b2
  • OS (e.g. MacOS version or Linux type): 24B5024e
  • Any other relevant version information (e.g. PyTorch or TensorFlow version): Python 3.11.9
@atiorh atiorh added the bug Unexpected behaviour that should be corrected (type) label Aug 22, 2024
@DawerG DawerG self-assigned this Aug 22, 2024
@DawerG
Copy link
Collaborator

DawerG commented Aug 22, 2024

Thanks for reporting. It's not expected, we are working on addressing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behaviour that should be corrected (type)
Projects
None yet
Development

No branches or pull requests

2 participants