Skip to content

Commit

Permalink
fix dependency install instructions for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Sep 11, 2024
1 parent 424b05b commit 416f87c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
8 changes: 7 additions & 1 deletion examples/computer_vision/iptc_exif_xmp_lib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# pip install defusedxml
"""
To install the required dependencies:
pip install datachain[examples]
"""

import json

from PIL import (
Expand Down
8 changes: 7 additions & 1 deletion examples/computer_vision/llava2_image_desc_lib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# pip install accelerate torch
"""
To install the required dependencies:
pip install datachain[examples]
"""

import torch
from transformers import (
AutoProcessor,
Expand Down
2 changes: 0 additions & 2 deletions examples/get_started/json-csv-reader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pip install datamodel-code-generator jmespath

from typing import Optional

from pydantic import BaseModel
Expand Down
7 changes: 6 additions & 1 deletion examples/get_started/torch-loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# pip install Pillow torchvision
"""
To install the required dependencies:
pip install datachain[torch]
"""

import os
from posixpath import basename
Expand Down
4 changes: 2 additions & 2 deletions examples/get_started/udfs/stateful.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
To install dependencies:
To install the required dependencies:
pip install open_clip_torch
pip install datachain[examples]
"""

Expand Down

0 comments on commit 416f87c

Please sign in to comment.