neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Roboflow 공식 Python 패키지로 데이터셋·모델·배포를 관리하고 컴퓨터 비전 앱을 구축합니다
The official Roboflow Python package. Manage your datasets, models, and deployments. Roboflow has everything you need to build a computer vision application.
개발 도구Python · ShellGitHub @roboflow직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗notebooks | inference | autodistill | collect | supervision
Roboflow provides everything you need to build and deploy computer vision models. roboflow-python is the official Roboflow Python package. roboflow-python enables you to interact with models, datasets, and projects hosted on Roboflow.
With this Python package, you can:
The Python package is documented on the official Roboflow documentation site. If you are developing a feature for this Python package, or need a full Python library reference, refer to the package developer documentation.
You will need to have Python 3.10 or higher set up to use the Roboflow Python package.
Run the following command to install the Roboflow Python package:
pip install roboflow
For desktop features, use:
pip install "roboflow[desktop]"
To decode HEIC/HEIF images locally (for example model.predict("photo.heic")), use:
pip install "roboflow[heic]"
This installs pillow-heif, whose binary wheels are GPL-2.0 licensed because they bundle the x265 encoder. Uploading HEIC images works without it, since the server decodes them.
If you only need vision events, workspace management, and the CLI (no image processing, inference, or training), install the lightweight package:
pip install roboflow-slim
This skips heavy dependencies like OpenCV, NumPy, Matplotlib, and Pillow, reducing install size from ~400MB to ~50MB. Useful for embedded devices, CI pipelines, and serverless environments.
Both packages share the same codebase and version. pip install roboflow includes everything.
You can also install the Roboflow Python package from source using the following commands:
git clone https://github.com/roboflow-ai/roboflow-python.git
cd roboflow-python
python3 -m venv env
source env/bin/activate
pip install .
By installing roboflow python package you can use some of its functionality in the command line (without having to write python code). See CLI-COMMANDS.md
To use the Roboflow Python package, you first need to authenticate with your Roboflow account. You can do this by running the following command:
import roboflow
roboflow.login()
The same package supports Roboflow's EU data-residency platform. Select it when logging in with the CLI:
roboflow auth login --region eu
For environment-based configuration and CI, set ROBOFLOW_REGION=eu before
running Python or CLI commands. EU and US use separate authentication
backends, so use an EU API key obtained from
app.roboflow.eu.
You can also authenticate with an API key by using the following code:
import roboflow
rf = roboflow.Roboflow(api_key="")
Learn how to retrieve your Roboflow API key.
Below are some common methods used with the Roboflow Python package, presented concisely for reference. For a full library reference, refer to the Roboflow API reference documentation.
import roboflow
# Pass API key or use roboflow.login()
rf = roboflow.Roboflow(api_key="MY_API_KEY")
workspace = rf.workspace()
# creating object detection model that will detect flowers
project = workspace.create_project(
project_name="Flower detector",
project_type="object-detection", # Or "classification", "instance-segmentation", "semantic-segmentation"
project_license="MIT", # "private" for private projects, only available for paid customers
annotation="flowers" # If you plan to annotate lillys, sunflowers, etc.
)
# upload a dataset
workspace.upload_dataset(
dataset_path="./dataset/",
num_workers=10,
dataset_format="yolov8", # supports yolov8, yolov5, and Pascal VOC
project_license="MIT",
project_type="object-detection"
)
version = project.version("VERSION_NUMBER")
# upload model weights - yolov10
version.deploy(model_type="yolov10", model_path=f”{HOME}/runs/detect/train/”, filename="weights.pt")
# run inference (a version may own several trained models; models() returns all of them)
model = version.models()[0]
img_url = "https://media.roboflow.com/quickstart/aerial_drone.jpeg"
predictions = model.predict(img_url, hosted=True).json()
print(predictions)
Search for images across your workspace and export matching results as a ready-to-use dataset:
workspace = rf.workspace()
# Export images matching a search query
workspace.search_export(
query="class:person", # search query (e.g. "tag:review", "class:dog", "*")
format="coco", # annotation format: coco, yolov8, yolov5, voc, etc.
dataset="my-project", # optional: limit to a specific project
location="./my-export", # optional: output directory
)
Or from the CLI:
roboflow search-export "class:person" -f coco -d my-project -l ./my-export
The Roboflow Python library is structured using the same Workspace, Project, and Version ontology that you will see in the Roboflow application.
import roboflow
roboflow.login()
rf = roboflow.Roboflow()
workspace = rf.workspace("WORKSPACE_URL")
project = workspace.project("PROJECT_URL")
version = project.version("VERSION_NUMBER")
The workspace, project, and version parameters are the same as those you will find in the URL addresses at app.roboflow.com and universe.roboflow.com.
Within the workspace object you can perform actions like making a new project, listing your projects, or performing active learning where you are using predictions from one project's model to upload images to a new project.
Within the project object, you can retrieve metadata about the project, list versions, generate a new dataset version with preprocessing and augmentation settings, train a model in your project, and upload images and annotations to your project.
Within the version object, you can download the dataset version in any model format, train the version on Roboflow, and deploy your own external model to Roboflow.
We would love your input on how we can improve the Roboflow Python package! Please see our contributing guide to get started. Thank you 🙏 to all our contributors!