riu-rd commited on
Commit
4c6579e
·
verified ·
1 Parent(s): dfefc5c

Rest of the files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +3 -35
  2. Dockerfile +29 -0
  3. augmented/safe/train_image_0.jpg +0 -0
  4. augmented/safe/train_image_0_aug_0.jpg +0 -0
  5. augmented/safe/train_image_0_aug_1.jpg +0 -0
  6. augmented/safe/train_image_0_aug_2.jpg +0 -0
  7. augmented/safe/train_image_0_aug_3.jpg +0 -0
  8. augmented/safe/train_image_0_aug_4.jpg +0 -0
  9. augmented/safe/train_image_10.jpg +0 -0
  10. augmented/safe/train_image_100.jpg +0 -0
  11. augmented/safe/train_image_1005.jpg +0 -0
  12. augmented/safe/train_image_1005_aug_0.jpg +0 -0
  13. augmented/safe/train_image_1005_aug_1.jpg +0 -0
  14. augmented/safe/train_image_1005_aug_2.jpg +0 -0
  15. augmented/safe/train_image_1005_aug_3.jpg +0 -0
  16. augmented/safe/train_image_1005_aug_4.jpg +0 -0
  17. augmented/safe/train_image_1006.jpg +0 -0
  18. augmented/safe/train_image_1006_aug_0.jpg +0 -0
  19. augmented/safe/train_image_1006_aug_1.jpg +0 -0
  20. augmented/safe/train_image_1006_aug_2.jpg +0 -0
  21. augmented/safe/train_image_1006_aug_3.jpg +0 -0
  22. augmented/safe/train_image_1006_aug_4.jpg +0 -0
  23. augmented/safe/train_image_1008.jpg +0 -0
  24. augmented/safe/train_image_1008_aug_0.jpg +0 -0
  25. augmented/safe/train_image_1008_aug_1.jpg +0 -0
  26. augmented/safe/train_image_1008_aug_2.jpg +0 -0
  27. augmented/safe/train_image_1008_aug_3.jpg +0 -0
  28. augmented/safe/train_image_1008_aug_4.jpg +0 -0
  29. augmented/safe/train_image_100_aug_0.jpg +0 -0
  30. augmented/safe/train_image_100_aug_1.jpg +0 -0
  31. augmented/safe/train_image_100_aug_2.jpg +0 -0
  32. augmented/safe/train_image_100_aug_3.jpg +0 -0
  33. augmented/safe/train_image_100_aug_4.jpg +0 -0
  34. augmented/safe/train_image_1010.jpg +0 -0
  35. augmented/safe/train_image_1010_aug_0.jpg +0 -0
  36. augmented/safe/train_image_1010_aug_1.jpg +0 -0
  37. augmented/safe/train_image_1010_aug_2.jpg +0 -0
  38. augmented/safe/train_image_1010_aug_3.jpg +0 -0
  39. augmented/safe/train_image_1010_aug_4.jpg +0 -0
  40. augmented/safe/train_image_1011.jpg +0 -0
  41. augmented/safe/train_image_1011_aug_0.jpg +0 -0
  42. augmented/safe/train_image_1011_aug_1.jpg +0 -0
  43. augmented/safe/train_image_1011_aug_2.jpg +0 -0
  44. augmented/safe/train_image_1011_aug_3.jpg +0 -0
  45. augmented/safe/train_image_1011_aug_4.jpg +0 -0
  46. augmented/safe/train_image_1013.jpg +0 -0
  47. augmented/safe/train_image_1013_aug_0.jpg +0 -0
  48. augmented/safe/train_image_1013_aug_1.jpg +0 -0
  49. augmented/safe/train_image_1013_aug_2.jpg +0 -0
  50. augmented/safe/train_image_1013_aug_3.jpg +0 -0
.gitattributes CHANGED
@@ -1,35 +1,3 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
3
+ safety_model.pth filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9.18
2
+
3
+ WORKDIR /
4
+
5
+ # Copy requirements.txt to the container
6
+ COPY requirements.txt ./
7
+
8
+ # Install Python dependencies
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Add a non-root user to run the application
12
+ RUN useradd -m -u 1000 user
13
+
14
+ # Set the user and home directory environment variables
15
+ USER user
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
+
19
+ # Create the application directory
20
+ WORKDIR $HOME/app
21
+
22
+ # Copy the application code and model files
23
+ COPY --chown=user . $HOME/app/
24
+
25
+ # Expose the port the FastAPI app runs on
26
+ EXPOSE 7860
27
+
28
+ # Command to run the FastAPI app
29
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
augmented/safe/train_image_0.jpg ADDED
augmented/safe/train_image_0_aug_0.jpg ADDED
augmented/safe/train_image_0_aug_1.jpg ADDED
augmented/safe/train_image_0_aug_2.jpg ADDED
augmented/safe/train_image_0_aug_3.jpg ADDED
augmented/safe/train_image_0_aug_4.jpg ADDED
augmented/safe/train_image_10.jpg ADDED
augmented/safe/train_image_100.jpg ADDED
augmented/safe/train_image_1005.jpg ADDED
augmented/safe/train_image_1005_aug_0.jpg ADDED
augmented/safe/train_image_1005_aug_1.jpg ADDED
augmented/safe/train_image_1005_aug_2.jpg ADDED
augmented/safe/train_image_1005_aug_3.jpg ADDED
augmented/safe/train_image_1005_aug_4.jpg ADDED
augmented/safe/train_image_1006.jpg ADDED
augmented/safe/train_image_1006_aug_0.jpg ADDED
augmented/safe/train_image_1006_aug_1.jpg ADDED
augmented/safe/train_image_1006_aug_2.jpg ADDED
augmented/safe/train_image_1006_aug_3.jpg ADDED
augmented/safe/train_image_1006_aug_4.jpg ADDED
augmented/safe/train_image_1008.jpg ADDED
augmented/safe/train_image_1008_aug_0.jpg ADDED
augmented/safe/train_image_1008_aug_1.jpg ADDED
augmented/safe/train_image_1008_aug_2.jpg ADDED
augmented/safe/train_image_1008_aug_3.jpg ADDED
augmented/safe/train_image_1008_aug_4.jpg ADDED
augmented/safe/train_image_100_aug_0.jpg ADDED
augmented/safe/train_image_100_aug_1.jpg ADDED
augmented/safe/train_image_100_aug_2.jpg ADDED
augmented/safe/train_image_100_aug_3.jpg ADDED
augmented/safe/train_image_100_aug_4.jpg ADDED
augmented/safe/train_image_1010.jpg ADDED
augmented/safe/train_image_1010_aug_0.jpg ADDED
augmented/safe/train_image_1010_aug_1.jpg ADDED
augmented/safe/train_image_1010_aug_2.jpg ADDED
augmented/safe/train_image_1010_aug_3.jpg ADDED
augmented/safe/train_image_1010_aug_4.jpg ADDED
augmented/safe/train_image_1011.jpg ADDED
augmented/safe/train_image_1011_aug_0.jpg ADDED
augmented/safe/train_image_1011_aug_1.jpg ADDED
augmented/safe/train_image_1011_aug_2.jpg ADDED
augmented/safe/train_image_1011_aug_3.jpg ADDED
augmented/safe/train_image_1011_aug_4.jpg ADDED
augmented/safe/train_image_1013.jpg ADDED
augmented/safe/train_image_1013_aug_0.jpg ADDED
augmented/safe/train_image_1013_aug_1.jpg ADDED
augmented/safe/train_image_1013_aug_2.jpg ADDED
augmented/safe/train_image_1013_aug_3.jpg ADDED