Skip to content

Commit

Permalink
facelift, FigRealSNR
Browse files Browse the repository at this point in the history
  • Loading branch information
wahabk committed Mar 18, 2024
1 parent 58ddc9d commit 70467a7
Show file tree
Hide file tree
Showing 16 changed files with 203 additions and 581 deletions.
59 changes: 14 additions & 45 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,51 +1,20 @@
# FROM pytorch/pytorch
# FROM pytorch/pytorch:1.9.1-cuda11.1-cudnn8-devel
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime

# docker pull pytorch/pytorch:1.10.0-cuda11.3-cudnn8-devel
ENV PATH="/root/miniconda3/bin:$PATH"
ARG PATH="/root/miniconda3/bin:$PATH"

# RUN apt-get install libgl1 -y
RUN apt-get update -y \
&& apt-get install wget -y \
&& apt-get install libopenmpi-dev -y
# RUN echo 'export PATH=/root/miniconda3/bin:$PATH' >> /root/.bashrc

# RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*

RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda --version

WORKDIR /colloidoscope
COPY environment.yml .
# from https://stackoverflow.com/questions/55123637/activate-conda-environment-in-docker
RUN conda init bash \
&& . ~/.bashrc \
&& conda env create -f environment.yml \
&& conda activate colloids \
&& pip install ipython

# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1

# COPY tests/test_gpu.py .
# ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "colloids", "python3", "tests/test_gpu.py"]
# ENTRYPOINT ["conda", "activate", "colloids"]

WORKDIR /colloidoscope
# Update pip
# RUN pip3 install --upgrade pip
# # Install pip requirements
# COPY requirements.txt .
# RUN python -m pip install -r requirements.txt



# TODO use buildkit https://stackoverflow.com/questions/58018300/using-a-pip-cache-directory-in-docker-builds
RUN apt-get update -y \
&& apt-get install wget -y \
&& apt-get install git -y \
&& apt-get install libopenmpi-dev -y \
&& apt-get install python3 python3-dev -y

WORKDIR /app/
COPY colloidoscope /app/colloidoscope/
COPY examples /app/examples/
COPY setup.py /app/setup.py
COPY scripts /app/scripts/
COPY tests /app/tests/

RUN python3 -m pip install .
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ If you want to launch the container on a custom hard drive use:

## Contributions

Thanks to yushi yang for contributing the position simulations and helping me with the entire project in general.
Thanks to [Yushi Yang @yangyushi](https://github.com/yangyushi) for contributing the position simulations and helping me with the entire project in general.

This project wraps explore_lif which is written by Mathieu Leocmach and C. Ybert.
218 changes: 0 additions & 218 deletions environment.yml

This file was deleted.

Binary file added output/Paper/figSNR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions output/Paper/figSNR.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added output/Paper/real.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added output/Paper/real_cnr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added output/Paper/real_snr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added scripts/Paper/PR_curves.py
Empty file.
File renamed without changes.
Loading

0 comments on commit 70467a7

Please sign in to comment.