Skip to main content

Midas and Dense Prediction Transformers modules for Ambrosinus-Toolkit

Project description

Midas and DPT modules for Ambrosinus-Toolkit

GitHub release GitHub PyPI repo GitHub release date GitHub support forum GitHub license

This Module is part of Ambrosinus-Toolkit v1.2.9 (since 1.1.9)

This is a Python package for the "DPTto3D" component and "DPTSemSeg" component included in the Ambrosinus-Toolkit a Grasshopper Plugin.

All credits to each author who developed these Midas and DPT scripts.

I have packaged them and modified some strings of code to run them inside Grasshopper.
Every file is under the MIT licence.



Requirements

To run the DPTto3D component and DPTSemSeg component (subcategory AI) some Python libraries are necessary as the other AI tools. I have coded a Python library named atoolkitdpt v0.0.2 as part of Ambrosinus Toolkit project.

From your CMD window viewport, you can simply launch this command: pip install atoolkitdpt (I recommend this option) - in this way, all necessary libraries will be installed on your machine.

Alternatively, I have shared a "requirements.txt"(right click "Save as") file allowing the designer in this step in a unique command line from cmd.exe (Windows OS side). It does the same. After downloading the file to a custom folder (I suggest in C:/CustomFolder or something like that) run the following command from cmd.exe after logging in the "CustomFolder": pip install -r requirements.txt



Download at least one of these "weights models" pre-trained datasets by Intel Labs Research Team


MiDaS 3.1 for Monocular Depth Map Estimation (DPTto3D Grasshopper component)

For highest quality dpt_beit_large_512

For moderately less quality, but better speed-performance trade-off: dpt_swin2_large_384

For embedded devices: dpt_swin2_tiny_256, dpt_levit_224

MiDaS 3.0: Legacy transformer models dpt_large_384 and dpt_hybrid_384

MiDaS 2.1: Legacy convolutional models midas_v21_384 and midas_v21_small_256


Info components Article on my website


Semantic Segmentation with Dense Prediction Transformers (DPTSemSeg Grasshopper component)

For moderately less quality: dpt_hybrid-ade20k-53898607

For highest quality: dpt_large-ade20k-b12dca68


Info components Article on my website

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

atoolkitdpt-0.0.2.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

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

atoolkitdpt-0.0.2-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file atoolkitdpt-0.0.2.tar.gz.

File metadata

  • Download URL: atoolkitdpt-0.0.2.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.6

File hashes

Hashes for atoolkitdpt-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0000efda78844eeb7f070f82435b48363d0f7e2f30ac3327d42b42447a134d8a
MD5 1f50cf94684bece551283f90bd97f173
BLAKE2b-256 da4a0dea729caabbcd5cff61d8166473c62a3d3f037c0e41a4c5bc7819a2b41d

See more details on using hashes here.

File details

Details for the file atoolkitdpt-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: atoolkitdpt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.6

File hashes

Hashes for atoolkitdpt-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86c5e87ece0ef9fb6945cd0edb6dd6410815cb4331babdeab7ba8831bfa54b5e
MD5 a44f2252329e5c5b5cfd7c6d115d98c4
BLAKE2b-256 4eeda93bf04600a0a4e361aabab8f09c17cd81b0e5fd929aa1b09027cdf9067c

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