Skip to content

Commit

Permalink
[Build] update minor version & update torch to >= 2.0 (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 authored Oct 10, 2024
1 parent 0ca8249 commit 7f21e76
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set pyproject = load_file_data('../pyproject.toml', from_recipe_dir=True) %}
{% set project = pyproject.get('project') %}
{% set urls = pyproject.get('project', {}).get('urls') %}
{% set version = environ.get('BUILD_VERSION', '0.9.1a0') %}
{% set version = environ.get('BUILD_VERSION', '0.10.0a0') %}

package:
name: {{ project.get('name') }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pip install "python-doctr[torch,viz,html,contib]"
For MacBooks with M1 chip, you will need some additional packages or specific versions:

- TensorFlow 2: [metal plugin](https://developer.apple.com/metal/tensorflow-plugin/)
- PyTorch: [version >= 1.12.0](https://pytorch.org/get-started/locally/#start-locally)
- PyTorch: [version >= 2.0.0](https://pytorch.org/get-started/locally/#start-locally)

### Developer mode

Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Whichever OS you are running, you will need to install at least TensorFlow or Py
For MacBooks with M1 chip, you will need some additional packages or specific versions:

* `TensorFlow 2 Metal Plugin <https://developer.apple.com/metal/tensorflow-plugin/>`_
* `PyTorch >= 1.12.0 <https://pytorch.org/get-started/locally/#start-locally>`_
* `PyTorch >= 2.0.0 <https://pytorch.org/get-started/locally/#start-locally>`_

Via Python Package
==================
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ tf = [
"tf2onnx>=1.16.0,<2.0.0", # cf. https://github.com/onnx/tensorflow-onnx/releases/tag/v1.16.0
]
torch = [
"torch>=1.12.0,<3.0.0",
"torchvision>=0.13.0",
"torch>=2.0.0,<3.0.0",
"torchvision>=0.15.0",
"onnx>=1.12.0,<3.0.0",
]
html = [
Expand Down Expand Up @@ -101,8 +101,8 @@ dev = [
"tf-keras>=2.15.0,<3.0.0", # Keep keras 2 compatibility
"tf2onnx>=1.16.0,<2.0.0", # cf. https://github.com/onnx/tensorflow-onnx/releases/tag/v1.16.0
# PyTorch
"torch>=1.12.0,<3.0.0",
"torchvision>=0.13.0",
"torch>=2.0.0,<3.0.0",
"torchvision>=0.15.0",
"onnx>=1.12.0,<3.0.0",
# Extras
"weasyprint>=55.0",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from setuptools import setup

PKG_NAME = "python-doctr"
VERSION = os.getenv("BUILD_VERSION", "0.9.1a0")
VERSION = os.getenv("BUILD_VERSION", "0.10.0a0")


if __name__ == "__main__":
Expand Down

0 comments on commit 7f21e76

Please sign in to comment.