Clean up to arxiv (and move any ml related to the agentic repo) (#8)

This commit is contained in:
autistic-symposium-helper 2024-11-17 16:18:55 -08:00 committed by GitHub
parent f4d00ced80
commit 726e24b74d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
55 changed files with 4345 additions and 718 deletions

42
Caffee/Dockerfile Normal file
View file

@ -0,0 +1,42 @@
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
wget \
libatlas-base-dev \
libboost-all-dev \
libgflags-dev \
libgoogle-glog-dev \
libhdf5-serial-dev \
libleveldb-dev \
liblmdb-dev \
libopencv-dev \
libprotobuf-dev \
libsnappy-dev \
protobuf-compiler \
python-dev \
python-numpy \
python-pip \
python-scipy && \
rm -rf /var/lib/apt/lists/*
ENV CAFFE_ROOT=/opt/caffe
WORKDIR $CAFFE_ROOT
# FIXME: clone a specific git tag and use ARG instead of ENV once DockerHub supports this.
ENV CLONE_TAG=master
RUN git clone -b ${CLONE_TAG} --depth 1 https://github.com/BVLC/caffe.git . && \
for req in $(cat python/requirements.txt) pydot; do pip install $req; done && \
mkdir build && cd build && \
cmake -DCPU_ONLY=1 .. && \
make -j"$(nproc)"
ENV PYCAFFE_ROOT $CAFFE_ROOT/python
ENV PYTHONPATH $PYCAFFE_ROOT:$PYTHONPATH
ENV PATH $CAFFE_ROOT/build/tools:$PYCAFFE_ROOT:$PATH
RUN echo "$CAFFE_ROOT/build/lib" >> /etc/ld.so.conf.d/caffe.conf && ldconfig
WORKDIR /workspace

31
Caffee/README.md Normal file
View file

@ -0,0 +1,31 @@
## caffee deep learning example
<br>
build with:
<br>
```
docker build -t caffe:cpu .
```
<br>
test with:
<br>
```
docker run -ti caffe:cpu bash -c "cd /opt/caffe/build; make runtest"
```
<br>
play with:
<br>
```
docker run -ti --volume=$(pwd):/workspace caffe:cpu
```