Skip to content

Commit

Permalink
Merge pull request #33 from voxel51/opencv-iss
Browse files Browse the repository at this point in the history
Add OpenCV installation to notebooks
  • Loading branch information
ehofesmann committed Jan 13, 2022
2 parents 7761cc7 + d453416 commit 1148120
Show file tree
Hide file tree
Showing 16 changed files with 292 additions and 24 deletions.
27 changes: 26 additions & 1 deletion examples/comparing_YOLO_and_EfficientDet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,31 @@
"For more information check out the [YOLOv4 blog post](https://medium.com/voxel51/fifteen-minutes-with-fiftyone-yolov4-180cf66923a9?source=friends_link&sk=71922580c58ef371fbbb80f7356a872d) and [EfficientDet blog post](https://medium.com/voxel51/fifteen-minutes-with-fiftyone-efficientdet-d84b60ffff28?source=friends_link&sk=cf3f54dc3b8544e45fc70c07ae0eea30)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setup\n",
"\n",
"If you haven't already, install FiftyOne:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -374,7 +399,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
29 changes: 25 additions & 4 deletions examples/deepfakes_in_politics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,30 @@
"source": [
"## Setup\n",
"\n",
"1) Ensure that FiftyOne is installed, [follow these instructions to install.](https://voxel51.com/docs/fiftyone/getting_started/install.html)\n",
"\n",
"2) [Download the dataset containing deepfake videos and labels.](https://drive.google.com/file/d/1t8nAEFOw-khYwbaOLP5IYMq6mbvJY06Y/view?usp=sharing) Then unzip it and set the path below:"
"If you haven't already, install FiftyOne:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[Download the dataset containing deepfake videos and labels.](https://drive.google.com/file/d/1t8nAEFOw-khYwbaOLP5IYMq6mbvJY06Y/view?usp=sharing) Then unzip it and set the path below:"
]
},
{
Expand Down Expand Up @@ -290,7 +311,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
9 changes: 8 additions & 1 deletion examples/digging_into_coco.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -764,7 +771,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
27 changes: 26 additions & 1 deletion examples/emotion_recognition_presidential_debate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,31 @@
"And the emotion recognition model used is from https://github.com/justinshenk/fer."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setup\n",
"\n",
"If you haven't already, install FiftyOne:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -205,7 +230,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
13 changes: 10 additions & 3 deletions examples/exploring_classification_hardness.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1055,9 +1062,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "test",
"display_name": "Python 3",
"language": "python",
"name": "test"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1069,7 +1076,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
13 changes: 10 additions & 3 deletions examples/image_deduplication.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down Expand Up @@ -1142,9 +1149,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "test",
"display_name": "Python 3",
"language": "python",
"name": "test"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1156,7 +1163,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
27 changes: 26 additions & 1 deletion examples/image_uniqueness.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,31 @@
"For more details, check out the in-depth [image uniqueness tutorial](https://voxel51.com/docs/fiftyone/tutorials/uniqueness.html)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setup\n",
"\n",
"If you haven't already, install FiftyOne:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -446,7 +471,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
},
"nbsphinx": {
"execute": "never"
Expand Down
9 changes: 8 additions & 1 deletion examples/open_images_evaluation/open_images_evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@
"pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -693,7 +700,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
7 changes: 7 additions & 0 deletions examples/pytorch_detection_training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@
"!pip install torch torchvision"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "code",
"execution_count": 7,
Expand Down
20 changes: 18 additions & 2 deletions examples/pytorchvideo_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,23 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install fiftyone torch torchvision"
"!pip install fiftyone"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you run into a `cv2` error when importing FiftyOne later on, it is an issue with OpenCV in Colab environments. [Follow these instructions to resolve it.](https://github.com/voxel51/fiftyone/issues/1494#issuecomment-1003148448)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install torch torchvision"
]
},
{
Expand Down Expand Up @@ -1522,7 +1538,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 1148120

Please sign in to comment.