Skip to main content

Da Mei project with deep learning general functions.

Project description

Stars Open issue Source_codes Source_codes

damei

damei(大妹) library。

涉及深度学习和量子力学交叉。

提供常用函数、控制台、解算器等。

1.安装

pypi安装:

pip install damei  

下载源码后:

unzip damei-master.zip
cd damei-master
python setup.py install

2.使用

详细API文档

import damei as dm

3.更新日志

"""
20200808 v1.0.0 初始版本
20210303 v1.0.15 general.letterbox
				general.plot_one_box_trace_pose_status
				general.xyxy2xywh
				general.xywh2xyxy
				dm.torch_utils.select_device
20211010 v1.0.153 dm.tools.check_COCO dm.tools.check_YOLO
20211201 v1.0.154 数据增强,根据mask的目标的随机位置、随机缩放和随机旋转
20211210 v1.0.155 dm.genral.pts2bbox 
20211223 v1.0.156 dm.video2frames
20211223 v1.0.157 dm.misc.list2table 
                  dm.misc.flatten_list
20220114 v1.0.158 dm.general.torch_distributed_zero_firs
20220117 v1.0.159 dm.getLogger(name=None, name_lenth=12, level=logging.INFO)
20220215 v1.0.160 dm.misc.dict2info(info_dict)  # 字典带颜色转为方便查看的字符串
                  dm.current_system()  # 返回linux windows macos
                  dm.system_lib_suffix()  # 返回.so .dll .dylib
20220304 v1.0.161 支持无torch库时import damei,有torch库时能调用
20220305 v1.0.162 ct = dm.current_time()  # 当前时间
                  et = dm.plus_time(ct=None, seconds=1)  # 未来某个到期时间
                  bool = dm.within_time(et, ct=None)  # 输入到期时间,判断当前时间是否在内 
                  dm.rsa.gen_rsa(length=1024)  # 在随机生成公钥-私钥对,存储在当前路径pubk.pen和privk.pem里
                  dm.rsa.encrypt(plaintext, pubk=None, privk=None, length=1024)  # 用公钥或私钥对明文加密
                  dm.rsa.decrypt(ciphertext, pubk=None, privk=None, length=1024)  # 用私钥或公钥对密文解密
                  dm.rsa.sign(message, privk, hash_method='MD5')  # 签密体制下的签名
                  dm.rsa.verify(message, signature, pubk)  # 签密体制下的验签
20220309 v1.0.163 cfg = dm.PyConfig(cfg_file)
                    print(cfg.info())  # 查看配置
                    cfg.merge(cfg2)  # 合并配置      
20220322 v1.0.164 dm.comm.push_stream(  # 把视频推成流
                source, ip='127.0.0.1', port=1935, stream_type='rtmp', key=None))
20220323 v1.0.165 dmpeg = dm.DmFFMPEG()  # 传入一堆参数
                    for img in imgs:  # 循环中推流
                        dmpeg.push_stream(img)  # 推流
                # 取流:ffplay rtmp://127.0.0.1:1935/live

20220408 v1.1.0 # 新增dm.nn
            uaii = dm.nn.api.UAII()
         v1.1.1 # 新增dm.argparse,只读取默认值,不解析命令行参数
            parser = dm.argparse.ArgumentParser()
20220610 v1.1.7 # damei_doc上线
20220621 v1.1.8 # damei.comm.push_stream()  提供API文档
"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

damei-1.1.10.tar.gz (106.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

damei-1.1.10-py2.py3-none-any.whl (142.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file damei-1.1.10.tar.gz.

File metadata

  • Download URL: damei-1.1.10.tar.gz
  • Upload date:
  • Size: 106.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for damei-1.1.10.tar.gz
Algorithm Hash digest
SHA256 fe26cb16896b651b4f00759234d7f40728d86b035f331d1e56be14052640914f
MD5 921d86385c6689f70819532057214d6c
BLAKE2b-256 e7fa2964b6e444984bf6fb9e4acb0e269df029a57d4cbc82dbea6a7c5534c6b5

See more details on using hashes here.

File details

Details for the file damei-1.1.10-py2.py3-none-any.whl.

File metadata

  • Download URL: damei-1.1.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 142.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for damei-1.1.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c55f3c066f9826ba721b85d049838e7e48f7613c0d041dd2bfce01bf78f2d955
MD5 013898d2e58872e84ad746dfa91fc789
BLAKE2b-256 ea5838664b111d89f381c9b34bcd41c2f66e4f3a5d4764115ca244e49c978c65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page