-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add federated learning inplementation by plato
Signed-off-by: XinYao1994 <xyao@cs.hku.hk>
- Loading branch information
1 parent
cabdfe0
commit 972af2a
Showing
19 changed files
with
430 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
examples/federated-learning-mistnet-yolo-aggregator.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM tensorflow/tensorflow:1.15.4 | ||
|
||
RUN apt update \ | ||
&& apt install -y libgl1-mesa-glx git | ||
|
||
COPY ./lib/requirements.txt /home | ||
|
||
RUN python -m pip install --upgrade pip | ||
|
||
RUN pip install -r /home/requirements.txt | ||
|
||
ENV PYTHONPATH "/home/lib:/home/plato:/home/plato/packages/yolov5" | ||
|
||
COPY ./lib /home/lib | ||
RUN git clone https://github.com/TL-System/plato.git /home/plato | ||
|
||
RUN pip install -r /home/plato/requirements.txt | ||
RUN pip install -r /home/plato/packages/yolov5/requirements.txt | ||
|
||
WORKDIR /home/work | ||
COPY examples/federated_learning/yolov5_coco128_mistnet /home/work/ | ||
|
||
CMD ["/bin/sh", "-c", "ulimit -n 50000; python aggregate.py"] |
23 changes: 23 additions & 0 deletions
23
examples/federated-learning-mistnet-yolo-client.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM tensorflow/tensorflow:1.15.4 | ||
|
||
RUN apt update \ | ||
&& apt install -y libgl1-mesa-glx git | ||
|
||
COPY ./lib/requirements.txt /home | ||
|
||
RUN python -m pip install --upgrade pip | ||
|
||
RUN pip install -r /home/requirements.txt | ||
|
||
ENV PYTHONPATH "/home/lib:/home/plato:/home/plato/packages/yolov5" | ||
|
||
COPY ./lib /home/lib | ||
RUN git clone https://github.com/TL-System/plato.git /home/plato | ||
|
||
RUN pip install -r /home/plato/requirements.txt | ||
RUN pip install -r /home/plato/packages/yolov5/requirements.txt | ||
|
||
WORKDIR /home/work | ||
COPY examples/federated_learning/yolov5_coco128_mistnet /home/work/ | ||
|
||
ENTRYPOINT ["python", "train.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.