Spaces:
Running
Running
Rest of the files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +3 -35
- Dockerfile +29 -0
- augmented/safe/train_image_0.jpg +0 -0
- augmented/safe/train_image_0_aug_0.jpg +0 -0
- augmented/safe/train_image_0_aug_1.jpg +0 -0
- augmented/safe/train_image_0_aug_2.jpg +0 -0
- augmented/safe/train_image_0_aug_3.jpg +0 -0
- augmented/safe/train_image_0_aug_4.jpg +0 -0
- augmented/safe/train_image_10.jpg +0 -0
- augmented/safe/train_image_100.jpg +0 -0
- augmented/safe/train_image_1005.jpg +0 -0
- augmented/safe/train_image_1005_aug_0.jpg +0 -0
- augmented/safe/train_image_1005_aug_1.jpg +0 -0
- augmented/safe/train_image_1005_aug_2.jpg +0 -0
- augmented/safe/train_image_1005_aug_3.jpg +0 -0
- augmented/safe/train_image_1005_aug_4.jpg +0 -0
- augmented/safe/train_image_1006.jpg +0 -0
- augmented/safe/train_image_1006_aug_0.jpg +0 -0
- augmented/safe/train_image_1006_aug_1.jpg +0 -0
- augmented/safe/train_image_1006_aug_2.jpg +0 -0
- augmented/safe/train_image_1006_aug_3.jpg +0 -0
- augmented/safe/train_image_1006_aug_4.jpg +0 -0
- augmented/safe/train_image_1008.jpg +0 -0
- augmented/safe/train_image_1008_aug_0.jpg +0 -0
- augmented/safe/train_image_1008_aug_1.jpg +0 -0
- augmented/safe/train_image_1008_aug_2.jpg +0 -0
- augmented/safe/train_image_1008_aug_3.jpg +0 -0
- augmented/safe/train_image_1008_aug_4.jpg +0 -0
- augmented/safe/train_image_100_aug_0.jpg +0 -0
- augmented/safe/train_image_100_aug_1.jpg +0 -0
- augmented/safe/train_image_100_aug_2.jpg +0 -0
- augmented/safe/train_image_100_aug_3.jpg +0 -0
- augmented/safe/train_image_100_aug_4.jpg +0 -0
- augmented/safe/train_image_1010.jpg +0 -0
- augmented/safe/train_image_1010_aug_0.jpg +0 -0
- augmented/safe/train_image_1010_aug_1.jpg +0 -0
- augmented/safe/train_image_1010_aug_2.jpg +0 -0
- augmented/safe/train_image_1010_aug_3.jpg +0 -0
- augmented/safe/train_image_1010_aug_4.jpg +0 -0
- augmented/safe/train_image_1011.jpg +0 -0
- augmented/safe/train_image_1011_aug_0.jpg +0 -0
- augmented/safe/train_image_1011_aug_1.jpg +0 -0
- augmented/safe/train_image_1011_aug_2.jpg +0 -0
- augmented/safe/train_image_1011_aug_3.jpg +0 -0
- augmented/safe/train_image_1011_aug_4.jpg +0 -0
- augmented/safe/train_image_1013.jpg +0 -0
- augmented/safe/train_image_1013_aug_0.jpg +0 -0
- augmented/safe/train_image_1013_aug_1.jpg +0 -0
- augmented/safe/train_image_1013_aug_2.jpg +0 -0
- augmented/safe/train_image_1013_aug_3.jpg +0 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 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
|