Giter VIP home page Giter VIP logo

face-anti-spoofer's People

Contributors

grib0ed0v avatar trushkin-ilya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

face-anti-spoofer's Issues

Train script doesn't save the model

Traceback (most recent call last):
  File "submit.py", line 43, in <module>
    model.load_state_dict(torch.load(getattr(args,f'model{protocol}_path'), map_location=device.type))
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/nn/modules/module.py", line 803, in load_state_dict
    state_dict = state_dict.copy()
AttributeError: 'function' object has no attribute 'copy'

Baseline model link broken

Can you share code for baseline models that are used for training the checkpoints, the sym-link in the repo seems to be broken.

Crash in SplittedDataLoader

File "train.py", line 44, in <module>
    dataloader = utils.SplittedDataLoader(dataset, args.train_batch_size, args.val_batch_size, args.num_workers)
  File "/home/agruzdev/git/face-anti-spoofer/utils.py", line 7, in init
    val_q = len(dataset) // sum(split) * split[1]
TypeError: 'int' object is not iterable

Allow to load model accross device types

Traceback (most recent call last):
  File "submit.py", line 43, in <module>
    model.load_state_dict(torch.load(getattr(args,f'model{protocol}_path')))
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/serialization.py", line 529, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/serialization.py", line 702, in _legacy_load
    result = unpickler.load()
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/serialization.py", line 665, in persistent_load
    deserialized_objects[root_key] = restore_location(obj, location)
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/serialization.py", line 156, in default_restore_location
    result = fn(storage, location)
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/serialization.py", line 132, in _cuda_deserialize
    device = validate_cuda_device(location)
  File "/home/itrushkin/.virtualenvs/antispoofing/lib/python3.7/site-packages/torch/serialization.py", line 116, in validate_cuda_device
    raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

No module named tqdm

Traceback (most recent call last):
  File "submit.py", line 7, in <module>
    from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

Model not work well with intel realsense d435

I downloaded weights and set up running with intel realsense d435, but get poor performance. I know casia-surf dataset is captured by intel real sense sr300 . So, it may not work with d435. If you have solution or idea , please help me

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.