Skip to content

Commit 96fd733

Browse files
committed
fix setup build and missing library data; added MANIFEST.in
1 parent 6fb12eb commit 96fd733

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

Diff for: BACKEND_MIGRATION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Overview
22

3-
In December 2022, ImageAI `3.0.0` was released which effected the change from Tensorflow backend to PyTorch backend. This change allows ImageAI to support `Python 3.7` up to `Python 3.10` for all its features and deprecates a number of functionalities for this and future versions of ImageAI.
3+
In December 2022, ImageAI `3.0.2` was released which effected the change from Tensorflow backend to PyTorch backend. This change allows ImageAI to support `Python 3.7` up to `Python 3.10` for all its features and deprecates a number of functionalities for this and future versions of ImageAI.
44

55

66
# Deprecated functionalities

Diff for: MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
recursive-include imageai/Detection *.txt
2+
recursive-include imageai/Classification *.txt

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ImageAI (v3.0.1)
1+
# ImageAI (v3.0.2)
22

33

44

@@ -11,7 +11,7 @@ An open-source python library built to empower developers to build applications
1111

1212
## ---------------------------------------------------
1313
## ImageAI now uses **PyTorch** backend.
14-
As from ImageAI `3.0.0`, the library now uses PyTorch has the backend. For full details on this and if you plan on using existing Tensorflow pretrained models, custom models and Pascal VOC dataset, visit the [BACKEND_MIGRATION.md](BACKEND_MIGRATION.md) documentation.
14+
As from ImageAI `3.0.2`, the library now uses PyTorch has the backend. For full details on this and if you plan on using existing Tensorflow pretrained models, custom models and Pascal VOC dataset, visit the [BACKEND_MIGRATION.md](BACKEND_MIGRATION.md) documentation.
1515
## ---------------------------------------------------
1616

1717
![](logo1.png)
@@ -28,7 +28,7 @@ Built with simplicity in mind, **ImageAI**
2828
Eventually, **ImageAI** will provide support for a wider and more specialized aspects of Computer Vision
2929

3030

31-
**New Release : ImageAI 3.0.1**
31+
**New Release : ImageAI 3.0.2**
3232

3333
What's new:
3434
- PyTorch backend

Diff for: imageai/backend_check/backend_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
import tensorflow
77
import keras
88

9-
raise RuntimeError("Dependency error!!! It appears you are trying to use ImageAI with a Tensorflow backend. ImageAI now uses PyTorch as backed as from version 3.0.1 . If you want to use the Tensorflow models or a customly trained '.h5' model, install ImageAI 2.1.6 or earlier. To use the latest Pytorch models, see the documentation in https://imageai.readthedocs.io/")
9+
raise RuntimeError("Dependency error!!! It appears you are trying to use ImageAI with a Tensorflow backend. ImageAI now uses PyTorch as backed as from version 3.0.2 . If you want to use the Tensorflow models or a customly trained '.h5' model, install ImageAI 2.1.6 or earlier. To use the latest Pytorch models, see the documentation in https://imageai.readthedocs.io/")
1010
except:
1111
raise RuntimeError("Dependency error!!! PyTorch and TorchVision are not installed. Please see installation instructions in the documentation https://imageai.readthedocs.io/")

Diff for: imageai/backend_check/model_extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
def extension_check(file_path: str):
44
if file_path.endswith(".h5"):
5-
raise RuntimeError("You are trying to use a Tensorflow model with ImageAI. ImageAI now uses PyTorch as backed as from version 3.0.1 . If you want to use the Tensorflow models or a customly trained '.h5' model, install ImageAI 2.1.6 or earlier. To use the latest Pytorch models, see the documentation in https://imageai.readthedocs.io/")
5+
raise RuntimeError("You are trying to use a Tensorflow model with ImageAI. ImageAI now uses PyTorch as backed as from version 3.0.2 . If you want to use the Tensorflow models or a customly trained '.h5' model, install ImageAI 2.1.6 or earlier. To use the latest Pytorch models, see the documentation in https://imageai.readthedocs.io/")
66
elif file_path.endswith(".pt") == False and file_path.endswith(".pth") == False:
77
raise ValueError(f"Invalid model file {os.path.basename(file_path)}. Please parse in a '.pt' and '.pth' model file.")

Diff for: setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from setuptools import setup,find_packages
22

33
setup(name="imageai",
4-
version='3.0.1',
4+
version='3.0.2',
55
description='A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities',
66
url="https://github.com/OlafenwaMoses/ImageAI",
77
author='Moses Olafenwa',
88
author_email='[email protected]',
99
license='MIT',
10-
packages= find_packages(),
10+
packages= find_packages(exclude=["*imageai_tf_deprecated*"]),
1111
install_requires=[],
12+
include_package_data=True,
1213
zip_safe=False)

0 commit comments

Comments
 (0)