TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

When run "python -m pip install colored polygraphy --extra-index-url https://pypi.ngc.nvidia.com", Can`t find install.ps1

Open Fuzhiyuan opened this issue 3 years ago • 4 comments

Fuzhiyuan avatar Jul 12 '22 09:07 Fuzhiyuan

Could you also inform me where the wheel and setup.py is? In addition, I think the polygraphy`s guidance seems too simple

Fuzhiyuan avatar Jul 12 '22 10:07 Fuzhiyuan

Can you describe how can we reproduce this error? I never met this before.

zerollzeng avatar Jul 12 '22 11:07 zerollzeng

@zerollzeng I just run that command, then can not find install.psl fiI le in polygraph document. So, I think I can not inform you more information. The following is the tree which I get when the comman is finished.

|—python |---|---lib |---|---| site-package |---|---|---|--colored |---|---|---|--colored-1.4.3-py3.8.egg-info |---|---|---|--polygraphy-0.36.2.dist-info |---|---|---|--polygraphy

This polygraph tree :

│ config.py │ constants.py │ init.py │ ├─backend │ │ trt_legacy.py │ │ init.py │ │ │ ├─base │ │ │ loader.py │ │ │ runner.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ loader.cpython-38.pyc │ │ runner.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─common │ │ │ loader.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ loader.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─onnx │ │ │ loader.py │ │ │ util.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ loader.cpython-38.pyc │ │ util.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─onnxrt │ │ │ loader.py │ │ │ runner.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ loader.cpython-38.pyc │ │ runner.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─pluginref │ │ │ references.py │ │ │ runner.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ references.cpython-38.pyc │ │ runner.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─pyt │ │ │ runner.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ runner.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─tf │ │ │ loader.py │ │ │ runner.py │ │ │ util.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ loader.cpython-38.pyc │ │ runner.cpython-38.pyc │ │ util.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─trt │ │ │ algorithm_selector.py │ │ │ calibrator.py │ │ │ loader.py │ │ │ profile.py │ │ │ runner.py │ │ │ util.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ algorithm_selector.cpython-38.pyc │ │ calibrator.cpython-38.pyc │ │ loader.cpython-38.pyc │ │ profile.cpython-38.pyc │ │ runner.cpython-38.pyc │ │ util.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ └─pycache │ trt_legacy.cpython-38.pyc │ init.cpython-38.pyc │ ├─common │ │ interface.py │ │ struct.py │ │ init.py │ │ │ └─pycache │ interface.cpython-38.pyc │ struct.cpython-38.pyc │ init.cpython-38.pyc │ ├─comparator │ │ comparator.py │ │ compare.py │ │ data_loader.py │ │ postprocess.py │ │ struct.py │ │ util.py │ │ init.py │ │ │ └─pycache │ comparator.cpython-38.pyc │ compare.cpython-38.pyc │ data_loader.cpython-38.pyc │ postprocess.cpython-38.pyc │ struct.cpython-38.pyc │ util.cpython-38.pyc │ init.cpython-38.pyc │ ├─cuda │ │ cuda.py │ │ init.py │ │ │ └─pycache │ cuda.cpython-38.pyc │ init.cpython-38.pyc │ ├─exception │ │ exception.py │ │ init.py │ │ │ └─pycache │ exception.cpython-38.pyc │ init.cpython-38.pyc │ ├─func │ │ func.py │ │ init.py │ │ │ └─pycache │ func.cpython-38.pyc │ init.cpython-38.pyc │ ├─json │ │ serde.py │ │ init.py │ │ │ └─pycache │ serde.cpython-38.pyc │ init.cpython-38.pyc │ ├─logger │ │ logger.py │ │ init.py │ │ │ └─pycache │ logger.cpython-38.pyc │ init.cpython-38.pyc │ ├─mod │ │ exporter.py │ │ importer.py │ │ util.py │ │ init.py │ │ │ └─pycache │ exporter.cpython-38.pyc │ importer.cpython-38.pyc │ util.cpython-38.pyc │ init.cpython-38.pyc │ ├─tools │ │ registry.py │ │ script.py │ │ util.py │ │ init.py │ │ │ ├─args │ │ │ base.py │ │ │ comparator.py │ │ │ data_loader.py │ │ │ logger.py │ │ │ model.py │ │ │ trt_legacy.py │ │ │ init.py │ │ │ │ │ ├─onnx │ │ │ │ loader.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ loader.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ ├─onnxrt │ │ │ │ loader.py │ │ │ │ runner.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ loader.cpython-38.pyc │ │ │ runner.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ ├─pluginref │ │ │ │ runner.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ runner.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ ├─tf │ │ │ │ config.py │ │ │ │ loader.py │ │ │ │ runner.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ config.cpython-38.pyc │ │ │ loader.cpython-38.pyc │ │ │ runner.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ ├─tf2onnx │ │ │ │ loader.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ loader.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ ├─trt │ │ │ │ config.py │ │ │ │ loader.py │ │ │ │ runner.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ config.cpython-38.pyc │ │ │ loader.cpython-38.pyc │ │ │ runner.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ ├─util │ │ │ │ util.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ util.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ └─pycache │ │ base.cpython-38.pyc │ │ comparator.cpython-38.pyc │ │ data_loader.cpython-38.pyc │ │ logger.cpython-38.pyc │ │ model.cpython-38.pyc │ │ trt_legacy.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─base │ │ │ tool.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ tool.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─convert │ │ │ convert.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ convert.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─data │ │ │ data.py │ │ │ init.py │ │ │ │ │ ├─subtool │ │ │ │ to_input.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ to_input.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ └─pycache │ │ data.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─debug │ │ │ debug.py │ │ │ init.py │ │ │ │ │ ├─subtool │ │ │ │ artifact_sorter.py │ │ │ │ base.py │ │ │ │ build.py │ │ │ │ diff_tactics.py │ │ │ │ precision.py │ │ │ │ reduce.py │ │ │ │ repeat.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ artifact_sorter.cpython-38.pyc │ │ │ base.cpython-38.pyc │ │ │ build.cpython-38.pyc │ │ │ diff_tactics.cpython-38.pyc │ │ │ precision.cpython-38.pyc │ │ │ reduce.cpython-38.pyc │ │ │ repeat.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ └─pycache │ │ debug.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─inspect │ │ │ inspect.py │ │ │ init.py │ │ │ │ │ ├─subtool │ │ │ │ capability.py │ │ │ │ data.py │ │ │ │ model.py │ │ │ │ tactics.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ capability.cpython-38.pyc │ │ │ data.cpython-38.pyc │ │ │ model.cpython-38.pyc │ │ │ tactics.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ └─pycache │ │ inspect.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─run │ │ │ run.py │ │ │ init.py │ │ │ │ │ └─pycache │ │ run.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─surgeon │ │ │ surgeon.py │ │ │ init.py │ │ │ │ │ ├─subtool │ │ │ │ base.py │ │ │ │ extract.py │ │ │ │ insert.py │ │ │ │ sanitize.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ base.cpython-38.pyc │ │ │ extract.cpython-38.pyc │ │ │ insert.cpython-38.pyc │ │ │ sanitize.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ └─pycache │ │ surgeon.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ ├─template │ │ │ template.py │ │ │ init.py │ │ │ │ │ ├─subtool │ │ │ │ trt_config.py │ │ │ │ trt_network.py │ │ │ │ init.py │ │ │ │ │ │ │ └─pycache │ │ │ trt_config.cpython-38.pyc │ │ │ trt_network.cpython-38.pyc │ │ │ init.cpython-38.pyc │ │ │ │ │ └─pycache │ │ template.cpython-38.pyc │ │ init.cpython-38.pyc │ │ │ └─pycache │ registry.cpython-38.pyc │ script.cpython-38.pyc │ util.cpython-38.pyc │ init.cpython-38.pyc │ ├─util │ │ format.py │ │ util.py │ │ init.py │ │ │ └─pycache │ format.cpython-38.pyc │ util.cpython-38.pyc │ init.cpython-38.pyc │ └─pycache config.cpython-38.pyc constants.cpython-38.pyc init.cpython-38.pyc

Fuzhiyuan avatar Jul 13 '22 01:07 Fuzhiyuan

@Fuzhiyuan Are you trying to build from source, or use the pre-built wheels? For the pre-built wheels, all you need to do is:

python -m pip install colored polygraphy --extra-index-url https://pypi.ngc.nvidia.com

pranavm-nvidia avatar Jul 15 '22 16:07 pranavm-nvidia

Closing since no response for more than 3 weeks, please reopen if you still have question, thanks!

ttyio avatar Sep 19 '22 07:09 ttyio