Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Newbie Encounters Minor Issue, Seeking Experienced Help #216

Open
Wlrmaakr opened this issue Jan 15, 2025 · 3 comments
Open

[Bug] Newbie Encounters Minor Issue, Seeking Experienced Help #216

Wlrmaakr opened this issue Jan 15, 2025 · 3 comments

Comments

@Wlrmaakr
Copy link

(moondream) D:\moondream>python gradio_demo.py
Traceback (most recent call last):
File "D:\moondream\gradio_demo.py", line 11, in
from moondream.hf import LATEST_REVISION, Moondream, detect_device
ModuleNotFoundError: No module named 'moondream.hf'

I followed the instructions in the README to execute the following commands:
pip install moondream==0.0.5
pip install -r requirements.txt
However, I'm not sure why there is no 'moondream.hf'.

@pratap73
Copy link

same error , did you resolve it?

@Wlrmaakr
Copy link
Author

Wlrmaakr commented Feb 5, 2025

same error , did you resolve it?

hello,did you resolve it now?

@tbjszhu
Copy link

tbjszhu commented Feb 13, 2025

Meet the same issue while I'm trying to use local script "sample.py" to run this moondream.
I've install moondream pip package and calling the "python3 sample.py xxx" under the git clone folder "moondream". I can't find this "hf" module in the moondream package nor under the local moondream folder.

For pip package:

import moondream
dir(moondream)
['CloudVL', 'OnnxVL', 'Optional', 'VLM', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'cloud_vl', 'moonfile', 'onnx_vl', 'preprocess', 'types', 'vl']

For local folder:
moondream$ ls moondream/
config eval finetune init.py torch

From git log I see there is a position change for this hf module:
commit fc0035a
Author: vik vikhyatk@gmail.com
Date: Wed Oct 9 12:39:22 2024 -0700

refactor: move HF integration into moondream/hf

planning to create a simpler/easier to understand reference implementation
using just PyTorch.

Has the author uploaded the "hf" folder to this public git or maybe I miss downloading any part?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants