Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@arpitdayma123
Copy link

This commit introduces the necessary files and modifications to enable the KEEP model to run on RunPod Serverless.

Key changes:

  • Added handler.py: Contains the serverless handler function to process video URLs using the KEEP model. It includes logic for video downloading, frame processing, model inference, and output generation.
  • Created Dockerfile: Defines the Docker image for the RunPod Serverless environment, including all dependencies, application code, and pre-trained model downloads.
  • Updated requirements.txt: Added runpod package and ensured all other necessary dependencies are listed.

These changes allow you to deploy the KEEP model as a serverless endpoint on RunPod, accepting video URLs as input and returning processed videos.

This commit introduces the necessary files and modifications to enable the KEEP model to run on RunPod Serverless.

Key changes:
- Added `handler.py`: Contains the serverless handler function to process video URLs using the KEEP model. It includes logic for video downloading, frame processing, model inference, and output generation.
- Created `Dockerfile`: Defines the Docker image for the RunPod Serverless environment, including all dependencies, application code, and pre-trained model downloads.
- Updated `requirements.txt`: Added `runpod` package and ensured all other necessary dependencies are listed.

These changes allow you to deploy the KEEP model as a serverless endpoint on RunPod, accepting video URLs as input and returning processed videos.
This commit updates several model download URLs in the Dockerfile to address build failures due to broken or incorrect links.

Changes include:
- YOLOv5 face models (yolov5n-face.pth, yolov5l-face.pth) now download from the jnjaby/KEEP GitHub releases.
- GMFlow model (gmflow_sintel-0c07dcb3.pth) download has been removed as a reliable URL was not found and handler.py does not strictly require it.
- Facelib models (detection_Resnet50_Final.pth, detection_mobilenet0.25_Final.pth, parsing_parsenet.pth) now download from the jnjaby/KEEP GitHub releases.
- Download paths for Facelib models standardized.
- Retry mechanism (--tries=3) for wget remains in place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant