You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a specific project from your workspace you'd like to run in a notebook, follow along with this tutorial: [Downloading Datasets from Roboflow for Training (Python)](https://www.youtube.com/watch?v=76E6esnez8E).
85
-
86
-
Selecting the format you'd like your project to be exported as while choosing the `show download code` option will display code snippets you can use in either Jupyter or your terminal. These code snippets will include your `api_key`, project, and workspace names.
To set the Docker container up for the first time:
93
+
Download any of over 200,000 public computer vision datasets from [Roboflow Universe](universe.roboflow.com). Label and download your own datasets on app.roboflow.com.
Predict with any of over 50,000 public computer vision models. Train your own computer vision models on app.roboflow.com or train upload your model from open source models - see https://github.com/roboflow/notebooks
The Roboflow python library is structured by the core Roboflow application objects.
123
118
124
-
Will use `python:3.9-slim`
119
+
Workspace (workspace.py) --> Project (project.py) --> Version (version.py)
125
120
126
-
**Note** If you are using [VSCode](https://code.visualstudio.com/) we recommend you read the ["Developing inside a Container"](https://code.visualstudio.com/docs/remote/containers) tutorial.
121
+
```python
122
+
from roboflow import Roboflow
123
+
rf = Roboflow()
124
+
workspace = rf.workspace("WORKSPACE_URL")
125
+
project = workspace.project("PROJECT_URL")
126
+
version = project.version("VERSION_NUMBER")
127
+
```
127
128
128
-
### Using Virtualenv
129
+
The workspace, project, and version parameters are the same that 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.
133
132
134
-
# create virtual env
135
-
virtualenv local_dev
133
+
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.
136
134
137
-
# activate virtual env
138
-
source local_dev/bin/activate
135
+
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.
139
136
140
-
# install dependencies
141
-
pip3 install -e ".[dev]"
142
-
```
137
+
## Contributing
143
138
144
-
### Testing
139
+
If you want to extend our Python library or if you find a bug, please open a PR!
145
140
146
-
Make sure you have your `virtualenv` spun up before running tests. Execute the `unittest` command at the `/root` level directory.
141
+
Also be sure to test your code the `unittest` command at the `/root` level directory.
147
142
148
143
Run tests:
149
144
150
145
```bash
151
146
python -m unittest
152
147
```
153
148
154
-
### Contributing
155
-
156
-
1. Increment the pip package minor version number in `setup.py`
157
-
1. Manually add any new dependencies to `requirements.txt` with a version such as `chardet==4.0.0` and list of dependencies in `setup.py` (Be careful not to overwrite any packages that might screw up backwards dependencies for object detection, etc.)
158
-
159
-
### Code Quality
160
-
161
149
When creating new functions, please follow the [Google style Python docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html). See example below:
162
150
163
151
```python
@@ -184,4 +172,4 @@ make style
184
172
make check_code_quality
185
173
```
186
174
187
-
**Note** These tests will be run automatically when you commit thanks to git hooks.
175
+
**Note** These tests will be run automatically when you commit thanks to git hooks.
0 commit comments