Closed distort5871 closed 1 year ago
Hello, I'm curious about your PyTorch version, maybe you should install pytorch with GPU support at this time I think~, we will try to update a CPU version for the users
If your device doesn't have GPU, you should just put --device 'cpu'
Hello, I'm curious about your PyTorch version, maybe you should install pytorch with GPU support at this time I think~, we will try to update a CPU version for the users
think you for your reply, and this my torch version and how i get version info,
by the way, i install pytorch by following commands:
conda install pytorch torchvision -c pytorch
i think it will be the latest version of pytorch
then, i take notice of you mentioned "we will try to update a CPU version for the users", can i refers to the problem i met is caused by the absence of GPU on my laptop?
If your device doesn't have GPU, you should just put
--device 'cpu'
think you for your help, i try to use device option with cpu, and i got the same output ! so amazing !
for other people meet same problem, can try to run command like theses:
python grounding_dino_demo.py \
> --config GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py \
> --grounded_checkpoint groundingdino_swint_ogc.pth \
> --input_image assets/demo1.jpg \
> --output_dir "outputs" \
> --box_threshold 0.3 \
> --text_threshold 0.25 \
> --text_prompt "bear" \
> --device "cpu"
and you will get some wanings, but don't care, you can get grounding_dino_output.jpg in your ./output directory.
The inference time on time on cpu
is not good. Is there any to improve inference time on the M1 Macbook machine?
If your device doesn't have GPU, you should just put
--device 'cpu'
think you for your help, i try to use device option with cpu, and i got the same output ! so amazing !
for other people meet same problem, can try to run command like theses:
python grounding_dino_demo.py \ > --config GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py \ > --grounded_checkpoint groundingdino_swint_ogc.pth \ > --input_image assets/demo1.jpg \ > --output_dir "outputs" \ > --box_threshold 0.3 \ > --text_threshold 0.25 \ > --text_prompt "bear" \ > --device "cpu"
and you will get some wanings, but don't care, you can get grounding_dino_output.jpg in your ./output directory.
Hi, I'm trying to run the model with --device "cpu" and still getting this error:
UserWarning: Failed to load custom C++ ops. Running on CPU mode Only!
warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!")
Process finished with exit code 0
The model does not actually run (exit code 0). I'm using Mac M1 and running the model independently through Pycharm.
hi all, i am new in the dp learning, but i am obsessed with this tech, so i try to run the project on my laptop, but i got some problems which i can't solve, please help me, think you for any information you give.
question:
i run follow demo on my macbook, but i got error like this:
command
error
my env
python=3.8 conda=23.1.0
is any body meet the same problem, or any body can give me some help, information about these?