معرفی شرکت ها


dlg-home-content-0.0.8


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

model to identify tv sizes using images
ویژگی مقدار
سیستم عامل -
نام فایل dlg-home-content-0.0.8
نام dlg-home-content
نسخه کتابخانه 0.0.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Fractal Image Group
ایمیل نویسنده dle@fractal.ai
آدرس صفحه اصلی https://gitlab.com/fractal/dlg_home_content/tree/master/
آدرس اینترنتی https://pypi.org/project/dlg-home-content/
مجوز Apache Software License 2.0
# dlg-home-content ## setup environment - `conda env create -f environment.yml` - install detectron2 from source - cpu version ```bash > conda install pytorch torchvision cpuonly -c pytorch > python -m pip install detectron2 -f \ https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.6/index.html > update environment `conda env update --file environment.yml` ``` - for other gpu versions, use [this](https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md) ## CLI commands available - convert labelme2coco ```bash labelme2coco --labelme_json_location 'data/processed_tv_annotations_v1/' --labels_loc "assets/keypoints.yml" --save_json "data/keypoints/" --train_ratio 0.9 --seed 50 ``` - train using custom dataset We need to define three config files - base cfg file name available on detectron. check `detectron/configs` for examples. - cfg file which contains modified params . check `configs` folder for specific examples - data_cfg which has dataset and keypoints related params. For example `assets/datasets.yml` ```bash # normal instance segmentation custom_train --base_cfg 'COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml' --cfg 'configs/mask_only_exp1.yml' --data_cfg "assets/datasets.yml" # instance segmentation with keypoints custom_train --base_cfg 'COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml' --cfg 'configs/keypoint_mask_on_exp1.yml' --data_cfg "assets/datasets.yml" ``` ## Inference ### LOGO Detection Download latest inference file from [here](https://fractalanalytic-my.sharepoint.com/:u:/r/personal/sindhura_k_fractal_ai/Documents/TV_indentification/logo_detection_weight_files/logo_detection_v2.pth?csf=1&web=1&e=nOtvzp) ```python from dlg_home_content.tv_detection import InferLogo config = '../assets/e2e_infer.yml model = InferLogo(config) model.predict(img_loc, visualize=True) ``` ### Inference for Keypoint Detetion Download weight files and config files from [here] (https://fractalanalytic-my.sharepoint.com/:u:/g/personal/sindhura_k_fractal_ai/EXCaFSHWv3hMo99lvfP4zKIBLBO8dlnWzY7iUAFWYiXHKA?e=23XheZ) ```bash #for inner keyoint detection from dlg_home_content.inference_pipeline import KeypointInference config = '../assets/e2e_infer.yml' #kp_type in ['kp_inner_edge','kp_outer_edge','kp_sticky_note'] model_inner = KeypointInference(config, kp_type='kp_inner_edge') predicted_keyoints = model_inner.predict_keypoints(img_loc, visualize=True) ``` ### End-to-End Inference pipeline ```python from dlg_home_content.e2e_inference import E2EInference config = '../assets/e2e_infer.yml' final_pipeline = E2EInference(config) result = final_pipeline.infer(img_loc, 8, 8, True) ```


نیازمندی

مقدار نام
==1.0.0 fastcore
>=4.4.0 nbformat
>=5.6.1 nbconvert
- pyyaml
>=0.1.5 fastscript
>=0.10.0 absl-py
==20.1.0 attrs
==0.2.0 backcall
==3.1.5 bleach
==4.1.1 cachetools
==2020.6.20 certifi
==3.0.4 chardet
==1.6.0 cloudpickle
==0.10.0 cycler
==0.29.21 Cython
==0.6 dataclasses
==4.4.2 decorator
==0.6.0 defusedxml
==0.3 entrypoints
==0.18.2 future
==0.1.1.post20200716 fvcore
==1.21.0 google-auth
==0.4.1 google-auth-oauthlib
==1.31.0 grpcio
==2.10 idna
==2.9.0 imageio
==5.3.4 ipykernel
- ipython
==0.2.0 ipython-genutils
==0.17.2 jedi
==2.11.2 Jinja2
==3.2.0 jsonschema
==6.1.7 jupyter-client
==4.6.3 jupyter-core
==1.2.0 kiwisolver
==3.2.2 Markdown
==1.1.1 MarkupSafe
==3.3.1 matplotlib
==0.8.4 mistune
==4.0.2 mock
==5.6.1 nbconvert
==1.0.10 nbdev
==5.0.7 nbformat
==2.5 networkx
==1.19.1 numpy
==3.1.0 oauthlib
==4.4.0.42 opencv-python
==20.4 packaging
==1.1.1 pandas
==1.4.2 pandocfilters
==0.7.1 parso
==4.8.0 pexpect
==0.7.5 pickleshare
==7.2.0 Pillow
==2.0.0 portalocker
==3.0.7 prompt-toolkit
==3.13.0 protobuf
==0.6.0 ptyprocess
==0.4.8 pyasn1
==0.2.8 pyasn1-modules
==2.0.2 pycocotools
==1.4.1 pydot
==2.6.1 Pygments
==2.4.7 pyparsing
==0.16.0 pyrsistent
==2.8.1 python-dateutil
==2020.1 pytz
==1.1.1 PyWavelets
==19.0.2 pyzmq
==2.24.0 requests
==1.3.0 requests-oauthlib
==4.6 rsa
==0.17.2 scikit-image
==1.5.2 scipy
==1.15.0 six
==0.8.7 tabulate
==2.3.0 tensorboard
==1.7.0 tensorboard-plugin-wit
==1.1.0 termcolor
==0.4.4 testpath
==2020.8.25 tifffile
- torch
- torchvision
==6.0.4 tornado
==4.48.2 tqdm
==1.25.10 urllib3
==0.2.5 wcwidth
==0.5.1 webencodings
==1.0.1 Werkzeug
==1.2.0 xlrd
==0.1.8 yacs


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl dlg-home-content-0.0.8:

    pip install dlg-home-content-0.0.8.whl


نصب پکیج tar.gz dlg-home-content-0.0.8:

    pip install dlg-home-content-0.0.8.tar.gz