Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions colab_inference/howtorun.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Already inside notebook just run code
###################################################################################
## Install these versions

!pip install Torch==0.3.1
!pip install Torchvision==0.2.1

## Clone repo

!git clone https://github.com/TencentYoutuResearch/FaceDetection-DSFD.git

## Mount drive

change directory to: /content/FaceDetection-DSFD

###################################################################################

# Do these manually (path to weight file and path to images you want to test and save
## change paths

change path of trained_model in code cell
change path of save folder,etc

!it look like this

widerface_root="WIDERFace_ROOT"
trained_model = "/content/drive/My Drive/WIDERFace_DSFD_RES152.pth"
save_folder = "eval_tools/"
visual_threshold = 0.1
cuda = True
img_root="./data/worlds-largest-selfie.jpg"


change path to your images in next code

!it look like this

filesdir='/content/drive/My Drive/FolderSeconds/'


Loading