on colab app error: Traceback (most recent call last): File "/content/TRELLIS/app.py",…
- User
on colab app error: Traceback (most recent call last): File "/content/TRELLIS/app.py", line 251, in pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large") File "/content/TRELLIS/trellis/pipelines/trellis_image_to_3d.py", line 55, in from_pretrained pipeline = super(TrellisImageTo3DPipeline, TrellisImageTo3DPipeline).from_pretrained(path) File "/content/TRELLIS/trellis/pipelines/base.py", line 39, in from_pretrained models = { File "/content/TRELLIS/trellis/pipelines/base.py", line 40, in k: models.from_pretrained(f"{path}/{v}") File "/content/TRELLIS/trellis/models/init.py", line 59, in from_pretrained model = getattr(config['name'])(**config['args'], **kwargs) File "/content/TRELLIS/trellis/models/structured_latent_vae/decoder_mesh.py", line 108, in init SparseSubdivideBlock3d( File "/content/TRELLIS/trellis/models/structured_latent_vae/decoder_mesh.py", line 43, in init sp.SparseConv3d(channels, self.out_channels, 3, indice_key=f"res{self.out_resolution}"), File "/content/TRELLIS/trellis/modules/sparse/conv/conv_spconv.py", line 11, in init import spconv.pytorch as spconv File "/usr/local/lib/python3.10/dist-packages/spconv/init.py", line 15, in from . import build as _build File "/usr/local/lib/python3.10/dist-packages/spconv/build.py", line 21, in from .constants import PACKAGE_NAME, PACKAGE_ROOT, DISABLE_JIT, SPCONV_INT8_DEBUG File "/usr/local/lib/python3.10/dist-packages/spconv/constants.py", line 19, in from cumm.gemm.constants import NVRTCMode File "/usr/local/lib/python3.10/dist-packages/cumm/init.py", line 28, in pccm.builder.build_pybind([ArrayPtr(), TensorViewBind()], File "/usr/local/lib/python3.10/dist-packages/pccm/builder/pybind.py", line 121, in build_pybind res = ccimport.ccimport( File "/usr/local/lib/python3.10/dist-packages/ccimport/core.py", line 155, in ccimport target_filename, no_work = build_simple_ninja( File "/usr/local/lib/python3.10/dist-packages/ccimport/buildtools/writer.py", line 1109, in build_simple_ninja raise subprocess.CalledProcessError(proc.returncode, cmds) subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1
- Assistant
The error traceback indicates that there is an issue with the installation or necessary compilation of the library when trying to run your code in Google Colab. Here are some steps to troubleshoot and resolve the issue:
- User
- Assistant
- User
Traceback (most recent call last): File "/content/TRELLIS/app.py", line 252, in pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large") File "/content/TRELLIS/trellis/pipelines/trellis_image_to_3d.py", line 55, in from_pretrained pipeline = super(TrellisImageTo3DPipeline, TrellisImageTo3DPipeline).from_pretrained(path) File "/content/TRELLIS/trellis/pipelines/base.py", line 39, in from_pretrained models = { File "/content/TRELLIS/trellis/pipelines/base.py", line 40, in k: models.from_pretrained(f"{path}/{v}") File "/content/TRELLIS/trellis/models/init.py", line 59, in from_pretrained model = getattr(config['name'])(**config['args'], **kwargs) File "/content/TRELLIS/trellis/models/structured_latent_vae/decoder_mesh.py", line 108, in SparseSubdivideBlock3d( File "/content/TRELLIS/trellis/models/structured_latent_vae/decoder_mesh.py", line 43, in sp.SparseConv3d(channels, self.out_channels, 3, indice_key=f"res{self.out_resolution}"), File "/content/TRELLIS/trellis/modules/sparse/conv/conv_spconv.py", line 11, in import spconv.pytorch as spconv File "/usr/local/lib/python3.10/dist-packages/spconv/.py", line 15, in from . import build as _build File "/usr/local/lib/python3.10/dist-packages/spconv/build.py", line 21, in from .constants import PACKAGE_NAME, PACKAGE_ROOT, DISABLE_JIT, SPCONV_INT8_DEBUG File "/usr/local/lib/python3.10/dist-packages/spconv/constants.py", line 19, in from cumm.gemm.constants import NVRTCMode File "/usr/local/lib/python3.10/dist-packages/cumm-0.7.7-py3.10.egg/cumm/.py", line 21, in from .constants import CUMM_CPU_ONLY_BUILD, CUMM_DISABLE_JIT, PACKAGE_NAME File "/usr/local/lib/python3.10/dist-packages/cumm-0.7.7-py3.10.egg/cumm/constants.py", line 35, in assert TENSORVIEW_INCLUDE_PATH.exists() AssertionError
- Assistant
- User
ModuleNotFoundError Traceback (most recent call last) in <cell line: 1>() ----> 1 import tensorview 2 print(tensorview.file)
2 frames /usr/local/lib/python3.10/dist-packages/tensorview/train/_general_plot.py in 4 import matplotlib.pyplot as plt 5 from IPython.display import clear_output ----> 6 from pyecharts.charts import Line 7 from pyecharts.charts import Page 8 from pyecharts.charts import Timeline
ModuleNotFoundError: No module named 'pyecharts'
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.
- Assistant
The error message indicates that the
pyechartspackage is not installed, which is required by thetensorviewlibrary. You can resolve this issue by installingpyecharts. Here’s how to do it:Step 1: Install Pyecharts
Run the following command in your Colab notebook:
python!pip install pyechartsStep 2: Verify TensorView Installation
After installing
pyecharts, retry importingtensorviewto ensure it works as expected:pythonimport tensorview print(tensorview.__file__)Step 3: Complete Dependency Installations
If you encounter any further errors after installing
pyecharts, it might be due to other missing dependencies. In that case, you can install them as needed. Keep an eye on the error messages to determine what additional packages are needed. - User
File "/content/TRELLIS/trellis/models/init.py", line 59, in from_pretrained model = getattr(config['name'])(**config['args'], **kwargs) File "/content/TRELLIS/trellis/models/structured_latent_vae/decoder_mesh.py", line 108, in init SparseSubdivideBlock3d( File "/content/TRELLIS/trellis/models/structured_latent_vae/decoder_mesh.py", line 43, in init sp.SparseConv3d(channels, self.out_channels, 3, indice_key=f"res_{self.out_resolution}"), File "/content/TRELLIS/trellis/modules/sparse/conv/conv_spconv.py", line 11, in init import spconv.pytorch as spconv File "/usr/local/lib/python3.10/dist-packages/spconv/init.py", line 15, in from . import build as _build File "/usr/local/lib/python3.10/dist-packages/spconv/build.py", line 21, in from .constants import PACKAGE_NAME, PACKAGE_ROOT, DISABLE_JIT, SPCONV_INT8_DEBUG File "/usr/local/lib/python3.10/dist-packages/spconv/constants.py", line 19, in from cumm.gemm.constants import NVRTCMode File "/usr/local/lib/python3.10/dist-packages/cumm/.py", line 31, in pccm.builder.build_pybind([ArrayPtr(), TensorViewBind(), AppleMetalImpl()], File "/usr/local/lib/python3.10/dist-packages/pccm/builder/pybind.py", line 121, in build_pybind res = ccimport.ccimport( File "/usr/local/lib/python3.10/dist-packages/ccimport/core.py", line 155, in ccimport target_filename, no_work = build_simple_ninja( File "/usr/local/lib/python3.10/dist-packages/ccimport/buildtools/writer.py", line 1109, in build_simple_ninja raise subprocess.CalledProcessError(proc.returncode, cmds) subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
- Assistant