SpatialLM icon indicating copy to clipboard operation
SpatialLM copied to clipboard

ssertionError: The number of point start tokens and point end tokens should be 1, but got 0 and 0.

Open Embrace-Arch opened this issue 1 year ago • 8 comments

how to deal with it?

Embrace-Arch avatar Jun 16 '25 10:06 Embrace-Arch

Hi, could you please provide more details about the error? For example, the specific line where the assertion fails, the input data, and the error log.

SamMaoYS avatar Jun 17 '25 02:06 SamMaoYS

Image python eval.py --metadata SpatialLM-Testset/test.csv --gt_dir SpatialLM-Testset/layout --pred_dir SpatialLM-Testset/pred --label_mapping SpatialLM-Testset/benchmark_categories.tsv

Embrace-Arch avatar Jun 17 '25 02:06 Embrace-Arch

when i use SpatialLM1.1-Llama-1B, that is no problem

Embrace-Arch avatar Jun 17 '25 04:06 Embrace-Arch

Hi, after several trials, I wasn’t able to reproduce the issue. It’s a bit unusual that the point_start and point_end tokens aren’t being detected in the input prompt. Could you share your environment details with us, such as GPU model, CUDA version, and relevant Python package versions, so we can better understand what might be going wrong?

SamMaoYS avatar Jun 17 '25 05:06 SamMaoYS

My computer runs Ubuntu, and the GPU is an RTX 3090. The CUDA version and Python environment match yours.

Embrace-Arch avatar Jun 17 '25 12:06 Embrace-Arch

I have configured the virtual environment to match yours. Alternatively, could you please save your environment as a requirements.txt file so that I can check it against mine

Embrace-Arch avatar Jun 17 '25 12:06 Embrace-Arch

Here is my pip freeze results

addict==2.4.0
anyio==4.9.0
attrs==25.3.0
backports.tarfile==1.2.0
bbox==0.9.4
blinker==1.9.0
build==1.2.2.post1
CacheControl==0.14.2
ccimport==0.4.4
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
cleo==2.1.0
click==8.1.8
ConfigArgParse==1.7
crashtest==0.4.1
cryptography==44.0.2
cumm-cu120==0.4.11
dash==3.0.0
distlib==0.3.9
dulwich==0.22.8
einops==0.8.1
fastjsonschema==2.21.1
filelock==3.18.0
findpython==0.6.3
fire==0.7.0
flash_attn==2.8.0.post2
Flask==3.0.3
fsspec==2025.3.0
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
huggingface-hub==0.29.3
idna==3.10
importlib_metadata==8.6.1
installer==0.7.0
itsdangerous==2.2.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jeepney==0.9.0
Jinja2==3.1.6
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter_core==5.7.2
keyring==25.6.0
lark==1.2.2
MarkupSafe==3.0.2
more-itertools==10.6.0
mpmath==1.3.0
msgpack==1.1.0
narwhals==1.31.0
nbformat==5.10.4
nest-asyncio==1.6.0
networkx==3.4.2
ninja==1.11.1.4
numpy==1.26.4
nvidia-cublas-cu12==12.4.2.65
nvidia-cuda-cupti-cu12==12.4.99
nvidia-cuda-nvrtc-cu12==12.4.99
nvidia-cuda-runtime-cu12==12.4.99
nvidia-cudnn-cu12==9.1.0.70
nvidia-cufft-cu12==11.2.0.44
nvidia-curand-cu12==10.3.5.119
nvidia-cusolver-cu12==11.6.0.99
nvidia-cusparse-cu12==12.3.0.142
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.4.99
nvidia-nvtx-cu12==12.4.99
open3d==0.18.0
packaging==24.2
pandas==2.2.3
pastel==0.2.1
pbs-installer==2025.3.17
pccm==0.4.16
pillow==11.1.0
pkginfo==1.12.1.2
platformdirs==4.3.7
plotly==6.0.1
poethepoet==0.33.1
poetry==2.1.1
poetry-core==2.1.1
portalocker==3.2.0
pyarrow==19.0.1
pybind11==2.13.6
pycparser==2.22
pyproject_hooks==1.2.0
pyquaternion==0.9.9
python-dateutil==2.9.0.post0
pytz==2025.1
PyYAML==6.0.2
RapidFuzz==3.12.2
referencing==0.36.2
regex==2024.11.6
requests==2.32.3
requests-toolbelt==1.0.0
rerun-sdk==0.21.0
retrying==1.3.4
rpds-py==0.23.1
safetensors==0.4.5
scikit-learn==1.6.1
scipy==1.15.2
SecretStorage==3.3.3
shapely==2.0.7
shellingham==1.5.4
six==1.17.0
sniffio==1.3.1
-e git+ssh://[email protected]/manycore-research/SpatialLM.git@13230c957525316d4488ac7000409c05f8d9971c#egg=spatiallm
spconv-cu120==2.3.6
stringcase==1.2.0
sympy==1.13.3
termcolor==3.1.0
terminaltables==3.1.10
threadpoolctl==3.6.0
timm==1.0.15
tokenizers==0.20.3
toml==0.10.2
tomlkit==0.13.2
torch==2.4.1+cu124
torch_scatter==2.1.2+pt24cu124
torchaudio==2.4.1+cu124
torchvision==0.19.1+cu124
tqdm==4.67.1
traitlets==5.14.3
transformers==4.46.1
triton==3.0.0
trove-classifiers==2025.3.19.19
typing_extensions==4.12.2
tzdata==2025.1
urllib3==2.3.0
virtualenv==20.29.3
Werkzeug==3.0.6
zipp==3.21.0
zstandard==0.23.0

SamMaoYS avatar Jun 21 '25 03:06 SamMaoYS

Issue closed due to inactivity. Please feel free to reopen it if you still experience any problems.

bertjiazheng avatar Jul 14 '25 13:07 bertjiazheng