Skip to content

Commit

Permalink
Merge pull request #3 from max810/clean_gui
Browse files Browse the repository at this point in the history
Merging all work into main
  • Loading branch information
max810 authored Aug 14, 2023
2 parents 139a745 + cbed0d0 commit f2bf623
Show file tree
Hide file tree
Showing 64 changed files with 4,938 additions and 660 deletions.
152 changes: 152 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
log/
output/
.vscode/
workspace/
run*.sh

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

output/
example_videos/
torchlogs/
*.png
*.csv
*.txt
*junk*
*.profile

!requirements*.txt

.DS_Store
*.jpg
*.zip
*.sh
Dockerfile
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,16 @@ dmypy.json

# Pyre type checker
.pyre/

output/
example_videos/
torchlogs/
*.png
*.csv
*.txt
*junk*
*.profile

.DS_Store
*.jpg
*.zip
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "XMem_utilities"]
path = XMem_utilities
url = [email protected]:max810/Xmem_utility_scripts.git
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use the specified PyTorch base image with CUDA support
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime AS xmem2-base-inference

# Set the working directory in the container
WORKDIR /app

RUN python -m pip install --no-cache-dir opencv-python-headless Pillow==9.2.0

# Install Python dependencies from requirements.txt
COPY requirements.txt /app/requirements.txt
RUN python -m pip install --no-cache-dir -r requirements.txt

# Copy the application files into the container
COPY . /app

# FOR GUI - only a few extra dependencies
FROM xmem2-base-inference AS xmem2-gui

# Qt dependencies
RUN apt-get update && apt-get install -y build-essential libgl1 libglib2.0-0 libxkbcommon-x11-0 '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev libfontconfig libdbus-1-3 mesa-utils libgl1-mesa-glx
RUN /bin/bash -c 'gcc --version'

RUN python -m pip install --no-cache-dir -r requirements_demo.txt
# To avoid error messages when launching PyQT
ENV LIBGL_ALWAYS_INDIRECT=1
Loading

0 comments on commit f2bf623

Please sign in to comment.