Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.10.6

RUN mkdir -p /app/images

WORKDIR /app

COPY ./ /app

RUN pip install poetry

RUN poetry install

EXPOSE 8501

CMD ["poetry", "run", "memery", "serve", "/app/images"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ pip install memery
pip install git+https://github.com/openai/CLIP.git
```

From Docker
```
docker build -t memery .
docker run -it -p 8501:8501 -v /path/to/images:/app/images
```

Currently memery defaults to GPU installation. This will
probably be switched in a future version.

Expand Down
24 changes: 13 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,26 @@ authors = ["deepfates <deepfates@gmail.com>", "wkrettek <warrenkrettek@gmail.com

[tool.poetry.dependencies]
python = "^3.9"
torch = "^1.11.0"
annoy = "^1.17.0"
torchvision = "^0.12.0"
tqdm = "^4.64.0"
Pillow = "^9.1.0"
typer = "^0.4.1"
torch = "1.11.0"
annoy = "1.17.0"
torchvision = "0.12.0"
tqdm = "4.64.0"
Pillow = "9.1.0"
typer = "0.4.1"
streamlit = "1.3.1"
clip = {git = "https://github.com/openai/CLIP", rev = "main"}
ftfy = "^6.1.1"
regex = "^2022.4.24"
altair = "^4.0.0"
ftfy = "6.1.1"
regex = "2022.4.24"
altair = "4.0.0"
numpy = "1.26.4"
protobuf= "3.20.3"

[tool.poetry.scripts]
memery = "memery.cli:main"

[tool.poetry.dev-dependencies]
ipywidgets = "^7.7.0"
ipython = "^8.3.0"
ipywidgets = "7.7.0"
ipython = "8.3.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down