Skip to content

Commit 68a7ecc

Browse files
author
dbickson
committed
updaging instructions;
1 parent faa457a commit 68a7ecc

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

INSTALL.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ sudo apt -y install libgl1-mesa-glx
1515
python3.8 -m pip install --upgrade pip
1616
```
1717

18+
## Mac OS setup
19+
```bash
20+
brew install ffmpeg@4
21+
```
1822

1923
# Pip Package setup
2024

@@ -117,3 +121,14 @@ conda install nomkl
117121
conda install numpy scipy pandas tensorflow
118122
conda remove mkl mkl-service # may fail, don't worry
119123
```
124+
125+
Error on Mac M1: `AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)`
126+
Solution: downgrade your cv2 version to 4.5.5.64 using the command `python.XX -m pip install -U opencv-python==4.5.5.64` where XX is your python version.
127+
128+
Error on Mac M1: library not loaded when trying to import cv2 `ImportError: dlopen(/Users/mikasnoopy/homebrew/lib/python3.9/site-packages/cv2/python-3.9/cv2.cpython-39-darwin.so, 2): Library not loaded: /Users/mikasnoopy/homebrew/opt/dav1d/lib/libdav1d.5.dylib
129+
Referenced from: /Users/mikasnoopy/homebrew/opt/ffmpeg@4/lib/libavcodec.58.dylib
130+
Reason: image not found
131+
` or any similar error.
132+
Solution: Downgrade your ffmpg using `brew remove ffmpeg; brew install ffmpeg@4`
133+
134+

RUN.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ Currently we extract frame 1 per sec, please reach out if you need other support
456456
## Debugging fastdup <a name="debug"/>
457457

458458
To debug program execution the following is recommended
459-
- Make sure you have upgraded fastdup to the latest version, we release versions a couple of times a week.
459+
- Make sure you have upgraded fastdup to the latest version, we release versions a couple of times a week.
460+
- In case of installation failure try to upgrade your pip version to the latest using `python3.XX -m pip install -U pip` where XX is your python version.
460461
- It is recommneded to debug in a python shell (and not in a Jupyter notebook)
461462
- Run with `verbose=1` to get additional traces
462463
- Run with `num_images=10` to run on a small subset of your data before running on the full dataset.
464+
- In a python shell run `import fastdup; help(fastdup)` to see function documentation.
463465
- If the issue persist please join our [Slack Channel]("https://join.slack.com/t/visualdatabase/shared_invite/zt-19jaydbjn-lNDEDkgvSI1QwbTXSY6dlA")

0 commit comments

Comments
 (0)