Giter VIP home page Giter VIP logo

Comments (6)

xudou3 avatar xudou3 commented on August 14, 2024

yeah, it will need to comment some parts for missing file and i changed some setting in opt file so it can run on my single 1070

from chalearn_liveness_challenge.

mrkstt avatar mrkstt commented on August 14, 2024

Hi @John1231983
I also successfully run the code. Probably this note can be useful:

  1. Remark all mobilenetv2 import (there are three files, find using "find in file" option on visual code)

  2. Make sure all paths are correct, including "data_root" at init_dataloader.py, weights paths at resnet_caffe_*.py, and etc.

  3. Remark this part on "trainer.py":
    """ self.visdom_log_file = os.path.join(self.opt.out_path, 'log_files', 'visdom.log')
    self.vis = Visdom(port = opt.visdom_port,
    log_to_filename=self.visdom_log_file,
    env=opt.exp_name + '_' + str(opt.fold))

     self.vis_loss_opts = {'xlabel': 'epoch', 
                           'ylabel': 'loss', 
                           'title':'losses', 
                           'legend': ['train_loss', 'val_loss']}
    
     self.vis_tpr_opts = {'xlabel': 'epoch', 
                           'ylabel': 'tpr', 
                           'title':'val_tpr', 
                           'legend': ['tpr@fpr10-2', 'tpr@fpr10-3', 'tpr@fpr10-4']}
    
     self.vis_epochloss_opts = {'xlabel': 'epoch', 
                           'ylabel': 'loss', 
                           'title':'epoch_losses', 
                           'legend': ['train_loss', 'val_loss']} """
    
  4. Don't forget to download the model*.pth from CASIA-SURF dataset, and put on the corresponding folder as shown on point 5 (pth path).

  5. I run the val script as follows:

python inference.py --config /home/face-spoofing/ChaLearn_liveness_challenge/data/opts/exp1_2stage_seed1/exp1_2stage_seed1_fold1_stage1.opt --pth /home/face-spoofing/ChaLearn_liveness_challenge/data/opts/exp1_2stage_seed1/fold1/checkpoints/model_30.pth --input_list /home/face-spoofing/ChaLearn_liveness_challenge/data/lists/folds_by_fakes/fold1/val_list.txt --output_list /home/face-spoofing/ChaLearn_liveness_challenge/output.txt

Cheers!

from chalearn_liveness_challenge.

harisudhan312 avatar harisudhan312 commented on August 14, 2024

@AlexanderParkin

Hi,

I found the links for exp1_2stage and exp3c on google drive to be broken. Can the author check and fix the broken links?

from chalearn_liveness_challenge.

zhangxiaopang88 avatar zhangxiaopang88 commented on August 14, 2024

Hello, download the model in the fourth article you wrote. Where did you download the model? could you tell me the specific path? @mrkstt

from chalearn_liveness_challenge.

cakuba avatar cakuba commented on August 14, 2024

Hi, could you please kindly tell me where I can find "the model*.pth from CASIA-SURF dataset" as you mentioned? @mrkstt I cannot locate it anywhere within CASIA-SURF dataset, or I am missing something here...

from chalearn_liveness_challenge.

mrkstt avatar mrkstt commented on August 14, 2024

I think the authors removed the .pth model file. If you're interested, please drop an email to me [email protected] @cakuba @zhangxiaopang88

Thanks and sorry for the late reply.

from chalearn_liveness_challenge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.