diff --git a/examples/README.md b/examples/README.md index c5f9e6d..62b3f52 100644 --- a/examples/README.md +++ b/examples/README.md @@ -30,7 +30,7 @@ The first step to make this example work is gather the objects as segmented imag and unzip in a folder call `raw_data/` inside `examples/`. 2. Run all the blocks of the `crop_image_from_mask.ipynb` notebook. 3. Check all images were created and are in the folder `examples/data/objects/` divide in 10 categories. -4. Download [some textures](http://textures.forrest.cz/) and place them in `examples/data/background/`. +4. Download [some textures](http://textures.forrest.cz/) and place them in `examples/data/backgrounds/`. ![Object](https://github.com/linkedai/flip/blob/master/docs/images/object.png) @@ -79,7 +79,7 @@ el = tr.Element(image=..., objects=...) To try the `data_generator.py` run: ```batch -python3 example/data_generator.py +python3 examples/data_generator.py ``` ![Object](https://github.com/linkedai/flip/blob/master/docs/images/generated.jpg) diff --git a/flip/__init__.py b/flip/__init__.py index 2997931..09b7af2 100644 --- a/flip/__init__.py +++ b/flip/__init__.py @@ -2,9 +2,20 @@ flip """ from . import transformers, utils +import os + +APP_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) about = {} -with open('flip/__about__.py') as fp: +with open(f'{APP_ROOT}/flip/__about__.py') as fp: exec(fp.read(), about) __version__ = about['__version__'] +__title__ = about['__title__'] +__package_name__ = about['__package_name__'] +__description__ = about['__description__'] +__email__ = about['__email__'] +__author__ = about['__author__'] +__github__ = about['__github__'] +__pypi__ = about['__pypi__'] +__license__ = about['__license__'] \ No newline at end of file