{"id":44988,"library":"fpsample","title":"fpsample","description":"An efficient CPU implementation of farthest point sampling (FPS) for point clouds, version 1.0.2. Provides fast FPS on CPU without GPU dependencies. Release cadence is low; no recent updates.","status":"active","version":"1.0.2","language":"python","source_language":"en","source_url":"https://github.com/leonardodalinky/fpsample","tags":["farthest point sampling","point cloud","sampling","cpu"],"install":[{"cmd":"pip install fpsample","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for array operations and point cloud representation.","package":"numpy","optional":false}],"imports":[{"note":"No common wrong import; the package exposes a single module.","wrong":null,"symbol":"fpsample","correct":"import fpsample"}],"quickstart":{"code":"import numpy as np\nimport fpsample\n\n# Generate random point cloud: N x D (e.g., N=1000, D=3)\npoints = np.random.rand(1000, 3).astype(np.float32)\n\n# Sample 10 points using farthest point sampling\nindices = fpsample.fps_sampling(points, 10)\nprint(indices)","lang":"python","description":"Sample a subset of points from a point cloud using farthest point sampling."},"warnings":[{"fix":"Convert input to float32 with points.astype(np.float32).","message":"The input point cloud must be a 2D numpy array of shape (N, D) with dtype float32. Other dtypes (e.g., float64) may cause errors or performance issues.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the returned indices as 0-based array indices.","message":"The function fps_sampling returns 0-based indices. Do not assume 1-based indexing.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace fps_sample with fps_sampling.","message":"The function fps_sample is deprecated and may be removed in a future release. Use fps_sampling instead.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.2':15 'cadenc':25 'cloud':13,35 'cpu':4,20,37 'depend':23 'effici':3 'farthest':7,31 'fast':17 'fps':10,18 'fpsampl':1 'gpu':22 'implement':5 'low':27 'point':8,12,32,34 'provid':16 'recent':29 'releas':24 'sampl':9,33,36 'updat':30 'version':14 'without':21","created_at":"2026-06-07T12:52:49.047849+00:00","updated_at":"2026-06-07T12:52:49.047849+00:00","problems":[{"fix":"Convert input to float32: points = points.astype(np.float32)","cause":"Input array has dtype float64, which is not supported.","error":"TypeError: 'numpy.float64' object cannot be interpreted as an integer"},{"fix":"Ensure point cloud is a 2D array of shape (N, D).","cause":"Input is not a 2D numpy array (e.g., 1D or 3D).","error":"ValueError: points must be a 2D array"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/leonardodalinky/fpsample","github":"https://github.com/leonardodalinky/fpsample","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}