Kaelan commited on
Commit
321ad01
·
1 Parent(s): 1803c28

add demo sample

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -6
  2. public/index.html +3 -0
Dockerfile CHANGED
@@ -32,11 +32,6 @@ WORKDIR $HOME/yolov-app
32
  COPY --chown=user --from=build-step /yolov-app/build ./build
33
  COPY --chown=user . $HOME/yolov-app
34
 
35
- #RUN cp /yolov-app/public/uploads/cafe_fall.mp4 /yolov-app/build/static/cafe_fall.mp4
36
- #RUN cp /yolov-app/public/uploads/kitchen.mp4 /yolov-app/build/static/kitchen.mp4
37
- #RUN cp /yolov-app/public/uploads/skate.mp4 /yolov-app/build/static/skate.mp4
38
- #RUN cp /yolov-app/public/uploads/slip.mp4 /yolov-app/build/static/slip.mp4
39
-
40
 
41
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
42
 
@@ -55,13 +50,14 @@ RUN gdown https://drive.google.com/file/d/1lZNim3Sl_dQN6gcyEvddRLeijM6v-pO5/view
55
  #cafe_fall.mp4
56
  RUN gdown https://drive.google.com/file/d/1Ru6ARgQOtshVgSUosFiH7GFRyRM-_R5U/view?usp=sharing --fuzzy -O build/static/
57
  #skate.mp4
 
 
58
 
59
  EXPOSE 5000
60
  EXPOSE 3000
61
  EXPOSE 7860
62
 
63
  RUN mkdir -p ~/sg_logs && chmod -R 777 ~/sg_logs
64
- #RUN mkdir -p /sg_logs && chmod -R 777 /sg_logs
65
  RUN mkdir -p $HOME/sg_logs && chmod -R 777 $HOME/sg_logs
66
 
67
  WORKDIR $HOME/yolov-app
 
32
  COPY --chown=user --from=build-step /yolov-app/build ./build
33
  COPY --chown=user . $HOME/yolov-app
34
 
 
 
 
 
 
35
 
36
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
37
 
 
50
  #cafe_fall.mp4
51
  RUN gdown https://drive.google.com/file/d/1Ru6ARgQOtshVgSUosFiH7GFRyRM-_R5U/view?usp=sharing --fuzzy -O build/static/
52
  #skate.mp4
53
+ RUN gdown https://drive.google.com/file/d/1Md80GemqcuWhVDKXftNNt6owCQQQlWxi/view?usp=sharing --fuzzy -O build/static/
54
+ #Sample.png
55
 
56
  EXPOSE 5000
57
  EXPOSE 3000
58
  EXPOSE 7860
59
 
60
  RUN mkdir -p ~/sg_logs && chmod -R 777 ~/sg_logs
 
61
  RUN mkdir -p $HOME/sg_logs && chmod -R 777 $HOME/sg_logs
62
 
63
  WORKDIR $HOME/yolov-app
public/index.html CHANGED
@@ -51,10 +51,13 @@
51
  <div class="offcanvas offcanvas-top" tabindex="-1" id="offcanvasTop" aria-labelledby="offcanvasTopLabel" style="background-color: #0b0b0bcf">
52
  <div class="offcanvas-header">
53
  <h5 id="offcanvasTopLabel">Introduction on experiment</h5>
 
54
  <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
55
  </div>
56
  <div class="offcanvas-body">
 
57
  <h2 style="color: #FEFBEA"> Introduction on experiment </h2>
 
58
  <ol>
59
  <li style="color: #FEFBEA"><b style="color: #FEFBEA"> Experimentation on using YOLO-NAS model(s-size) to do fall recognition. The model is trained on images of various scenarios of people falling or have fallen.</b></li>
60
  <li style="color: #FEFBEA"><b style="color: #FEFBEA">Deepsort alogrithm is use to track falls. There will be an id number next to the classification label "FALL DETECTED" and confidence in prediction </b></li>
 
51
  <div class="offcanvas offcanvas-top" tabindex="-1" id="offcanvasTop" aria-labelledby="offcanvasTopLabel" style="background-color: #0b0b0bcf">
52
  <div class="offcanvas-header">
53
  <h5 id="offcanvasTopLabel">Introduction on experiment</h5>
54
+
55
  <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
56
  </div>
57
  <div class="offcanvas-body">
58
+
59
  <h2 style="color: #FEFBEA"> Introduction on experiment </h2>
60
+ <img src="{{ url_for('static', filename='Sample.png') }}" ,width="240" height="240">
61
  <ol>
62
  <li style="color: #FEFBEA"><b style="color: #FEFBEA"> Experimentation on using YOLO-NAS model(s-size) to do fall recognition. The model is trained on images of various scenarios of people falling or have fallen.</b></li>
63
  <li style="color: #FEFBEA"><b style="color: #FEFBEA">Deepsort alogrithm is use to track falls. There will be an id number next to the classification label "FALL DETECTED" and confidence in prediction </b></li>