Feature Extraction
Transformers
Safetensors
j3pa
lidar
point-cloud
self-supervised-learning
autonomous-driving
custom_code
Run this model with HF Jobs
Run Zenseact/j3pa-tiny on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Zenseact/j3pa-tiny. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Zenseact/j3pa-tiny on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Zenseact/j3pa-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zenseact/j3pa-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Zenseact/j3pa-tiny", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Zenseact/j3pa-tiny", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add model card
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199---library_name: transformerstags: []---# Model Card for Model ID<!-- Provide a quick summary of what the model is/does. -->## Model Details### Model Description<!-- Provide a longer summary of what this model is. -->This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]### Model Sources [optional]<!-- Provide the basic links for the model. -->- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]## Uses<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->### Direct Use<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->[More Information Needed]### Downstream Use [optional]<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->[More Information Needed]### Out-of-Scope Use<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->[More Information Needed]## Bias, Risks, and Limitations<!-- This section is meant to convey both technical and sociotechnical limitations. -->[More Information Needed]### Recommendations<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.## How to Get Started with the ModelUse the code below to get started with the model.[More Information Needed]## Training Details### Training Data<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->[More Information Needed]### Training Procedure<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->#### Preprocessing [optional][More Information Needed]#### Training Hyperparameters- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->#### Speeds, Sizes, Times [optional]<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->[More Information Needed]## Evaluation<!-- This section describes the evaluation protocols and provides the results. -->### Testing Data, Factors & Metrics#### Testing Data<!-- This should link to a Dataset Card if possible. -->[More Information Needed]#### Factors<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->[More Information Needed]#### Metrics<!-- These are the evaluation metrics being used, ideally with a description of why. -->[More Information Needed]### Results[More Information Needed]#### Summary## Model Examination [optional]<!-- Relevant interpretability work for the model goes here -->[More Information Needed]## Environmental Impact<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).- **Hardware Type:** [More Information Needed]- **Hours used:** [More Information Needed]- **Cloud Provider:** [More Information Needed]- **Compute Region:** [More Information Needed]- **Carbon Emitted:** [More Information Needed]## Technical Specifications [optional]### Model Architecture and Objective[More Information Needed]### Compute Infrastructure[More Information Needed]#### Hardware[More Information Needed]#### Software[More Information Needed]## Citation [optional]<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->**BibTeX:**[More Information Needed]**APA:**[More Information Needed]## Glossary [optional]<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->[More Information Needed]## More Information [optional][More Information Needed]## Model Card Authors [optional][More Information Needed]## Model Card Contact[More Information Needed]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102---license: apache-2.0library_name: transformersbase_model: Zenseact/j3pa-1btags:- lidar- point-cloud- self-supervised-learning- autonomous-driving---# J3PA-TinyJ3PA is a family of self-supervised LiDAR point cloud encoders from Zenseact. They produce general-purpose features forevery point of a LiDAR scan, for downstream tasks such as semantic or panoptic segmentation, and 3D object detection. They can be used either frozen or fine-tunes.frozen features or by fine-tuning. J3PA-Tiny is distilled from J3PA-1B and, like the other distilled models, takes thevoxel size as an input, so one model serves voxel sizes from 4 to 20 cm. Larger voxel sizes result in higher throughput at only a minor cost in downstream task performance.See our paper for more details.Paper: arXiv link coming soon · Code: <GitHub link>## Model family| Model | Parameters ||---|---|| **[J3PA-Tiny](https://huggingface.co/Zenseact/j3pa-tiny)** | **9.8M** || [J3PA-Small](https://huggingface.co/Zenseact/j3pa-small) | 42.4M || [J3PA-Large](https://huggingface.co/Zenseact/j3pa-large) | 134.6M || [J3PA-1B](https://huggingface.co/Zenseact/j3pa-1b) | 1.01B |## How to useThe model runs custom GPU kernels that ship with this repository, so loading needs `trust_remote_code=True`.Usage example:```pythonimport numpy as npimport torchfrom transformers import AutoModelmodel = AutoModel.from_pretrained("Zenseact/j3pa-tiny", trust_remote_code=True, revision="v1.0").cuda()# A nuScenes sweep: x, y, z, intensity, ring index -> [age, x, y, z, intensity].xyzi = np.fromfile("n015-...__LIDAR_TOP__....pcd.bin", dtype=np.float32).reshape(-1, 5)[:, :4]points = torch.from_numpy(np.concatenate([np.zeros((len(xyzi), 1), np.float32), xyzi], axis=1)).cuda()with torch.inference_mode():out = model(points)features = out.point_features() # (N, 896): one feature per input point```**Batches.** Pass a list of point clouds and split the features back per cloud:```pythonwith torch.inference_mode():out = model([cloud_a, cloud_b])features_a, features_b = out.point_features().split([len(cloud_a), len(cloud_b)])```**Voxel size.** `voxel_size` is the voxel size of the first encoder stage in meters, 0.05 by default. J3PA-Tiny wastrained with 4 to 20 cm. Use a float for all clouds or a tensor with one value per cloud:```pythonout = model(points, voxel_size=0.1)out = model([cloud_a, cloud_b], voxel_size=torch.tensor([0.05, 0.1], device="cuda"))```## InputOne float32 CUDA tensor of shape (N, 5) per point cloud, with columns:- **age:** seconds from the point's sweep to the newest sweep of the cloud (0 for a single sweep). Stack several sweepsinto one cloud by concatenating their points with their ages.- **x, y, z:** meters, in <the coordinate frame used in training, e.g. the ego vehicle frame with z = 0 at <…>>.- **intensity:** 0 to 255. Multiply sensors' 0–1 intensities by 255.## OutputThe encoder voxelizes the points and processes them in five stages, the voxels of stage s being 2^s times the voxelsize. The output gives:- `point_features(stages=None)`: one feature per input point, in input order. By default the features of the point'svoxels in all five stages are concatenated, the deepest stage first: 256 + 256 + 192 + 128 + 64 = 896 channels,as in our linear-probing evaluation. `point_features(0)` gives only the finest stage (64 channels).`point_features([0, -1])` gives a chosen list of stages, negative indices counting from the deepest.- `voxel_features(stages=None)`: the same per voxel of the first stage, which is cheaper for dense tasks.- Per stage s: `features[s]` (N_s, C_s), `positions[s]` (N_s, 3; the mean position of the points in each voxel),`batch_indices[s]` and `up_indices[s]`.## Fine-tuningThe model trains like any PyTorch module. In train mode it randomizes the order of the space-filling-curves making attention groups as in pretraining.## LicenseApache 2.0, see [LICENSE](LICENSE).## CitationThe BibTeX will follow with the arXiv paper (coming soon).
README.md+70-167