LLMDet icon indicating copy to clipboard operation
LLMDet copied to clipboard

No module named 'llmdet.extender'

Open KlaraGtknst opened this issue 6 months ago • 1 comments

The import below does not work, probably due to the missing extender file.

https://github.com/TrustedLLM/LLMDet/blob/5d038354006ca0c8e6aa0dadb75e8840accb51a8/llmdet/init.py#L25

Traceback (most recent call last):
  File "...", line 7, in <module>
    import llmdet
  File ".../python3.11/site-packages/llmdet/__init__.py", line 25, in <module>
    from .extender import extend
ModuleNotFoundError: No module named 'llmdet.extender'

KlaraGtknst avatar Jul 09 '25 19:07 KlaraGtknst

If you want to extend LLMDet to a new model, you can do so according to the logic in the run_main.py (https://github.com/TrustedLLM/LLMDet/blob/main/main-experiment/run_main.py), we only planned the extension functionality in the pypi package at the time, but the extension functionality was not implemented in the pypi version. We can contact you at any time through gmail([email protected]) during the expansion process.

cansee5 avatar Jul 24 '25 02:07 cansee5