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

Apple M3 producing errors #216

Open
glenn-jocher opened this issue Jul 30, 2024 · 0 comments
Open

Apple M3 producing errors #216

glenn-jocher opened this issue Jul 30, 2024 · 0 comments

Comments

@glenn-jocher
Copy link

We have a report from an Apple M3 user showing an error in ultralytics/ultralytics#14805

!!! Exception during processing!!! py-cpuinfo currently only works on X86 and some PPC and ARM CPUs. Traceback (most recent call last): File "/Users/jamson/code_opensource/ComfyUI/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/code_opensource/ComfyUI/execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/code_opensource/ComfyUI/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/code_opensource/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/detectors.py", line 243, in doit return SimpleDetectorForEach.detect(bbox_detector, image, bbox_threshold, bbox_dilation, crop_factor, drop_size, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/code_opensource/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/detectors.py", line 224, in detect segs = bbox_detector.detect(image, bbox_threshold, bbox_dilation, crop_factor, drop_size, detailer_hook=detailer_hook) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/code_opensource/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/impact_subpack/impact/subcore.py", line 127, in detect detected_results = inference_bbox(self.bbox_model, core.tensor2pil(image), threshold) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/code_opensource/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/impact_subpack/impact/subcore.py", line 33, in inference_bbox pred = model(image, conf=confidence, device=device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/miniconda3/lib/python3.12/site-packages/ultralytics/engine/model.py", line 173, in __call__ return self.predict(source, stream, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/miniconda3/lib/python3.12/site-packages/ultralytics/engine/model.py", line 556, in predict self.predictor.setup_model(model=self.model, verbose=is_cli) File "/Users/jamson/miniconda3/lib/python3.12/site-packages/ultralytics/engine/predictor.py", line 305, in setup_model device=select_device(self.args.device, verbose=verbose), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jamson/miniconda3/lib/python3.12/site-packages/ultralytics/utils/torch_utils.py", line 204, in select_device s += f"CPU ({get_cpu_info()})\n" ^^^^^^^^^^^^^^ File "/Users/jamson/miniconda3/lib/python3.12/site-packages/ultralytics/utils/torch_utils.py", line 104, in get_cpu_info import cpuinfo  # pip install py-cpuinfo ^^^^^^^^^^^^^^ File "/Users/jamson/miniconda3/lib/python3.12/site-packages/cpuinfo/__init__.py", line 7, in <module> from cpuinfo.cpuinfo import * File "/Users/jamson/miniconda3/lib/python3.12/site-packages/cpuinfo/cpuinfo.py", line 1842, in <module> _check_arch() File "/Users/jamson/miniconda3/lib/python3.12/site-packages/cpuinfo/cpuinfo.py", line 1798, in _check_arch raise Exception("py-cpuinfo currently only works on X86 and some PPC and ARM CPUs.") Exception: py-cpuinfo currently only works on X86 and some PPC and ARM CPUs.

A screenshot of their environment is here:
image

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

1 participant