diff --git a/README.md b/README.md index a37dd8f155f7769f9cf7c848420af9e2250716f8..0bd210ea214751a040c402a9f357f8825fc9ca43 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ This repository is organised as follows: 2. Create a list of the videos to be used for the experiment. The list should contain the path for each video you want in the experiment. If you want all videos, you can use the following command: ``` bash - `find <path_to_database> -name "*.mp4" > <path_to_list>` + find <path_to_database> -name "*.mp4" > <path_to_list> ``` 3. Run the frames extraction code as follows: diff --git a/requirements.txt b/requirements.txt index 97b44881b50bc7ceb2612f09f89c7a0687351392..e7c197346d7d941f7fcc862d7d0c2c1fbd3ffed3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,206 +1,12 @@ -absl-py @ file:///home/conda/feedstock_root/build_artifacts/absl-py_1658854572623/work -aiohttp @ file:///home/conda/feedstock_root/build_artifacts/aiohttp_1649013154501/work -aiosignal @ file:///home/conda/feedstock_root/build_artifacts/aiosignal_1636093929600/work -anyio @ file:///home/conda/feedstock_root/build_artifacts/anyio_1666191106763/work/dist -argon2-cffi @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi_1640817743617/work -argon2-cffi-bindings @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi-bindings_1666850859330/work -asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1667325728359/work -astunparse @ file:///home/conda/feedstock_root/build_artifacts/astunparse_1610696312422/work -async-timeout @ file:///home/conda/feedstock_root/build_artifacts/async-timeout_1640026696943/work -attrs @ file:///home/conda/feedstock_root/build_artifacts/attrs_1659291887007/work -av==10.0.0 -Babel @ file:///home/conda/feedstock_root/build_artifacts/babel_1667688356751/work -backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work -backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1618230623929/work -beautifulsoup4 @ file:///home/conda/feedstock_root/build_artifacts/beautifulsoup4_1649463573192/work -bleach @ file:///home/conda/feedstock_root/build_artifacts/bleach_1656355450470/work -blinker==1.4 -bob.bio.base @ file:///scratch/builds/bob/bob.bio.base -bob.bio.face @ file:///scratch/builds/bob/bob.bio.face -bob.bio.video @ file:///scratch/builds/bob/bob.bio.video -bob.extension @ file:///scratch/builds/bob/bob.extension -bob.io.base @ file:///scratch/builds/bob/bob.io.base -bob.learn.em @ file:///scratch/builds/bob/bob.learn.em -bob.measure @ file:///scratch/builds/bob/bob.measure -bob.pad.base @ file:///scratch/builds/bob/bob.pad.base -bob.pad.face @ file:///scratch/builds/bob/bob.pad.face -bob.pipelines @ file:///scratch/builds/bob/bob.pipelines -bokeh @ file:///home/conda/feedstock_root/build_artifacts/bokeh_1660586590972/work -brotlipy @ file:///home/conda/feedstock_root/build_artifacts/brotlipy_1648854164373/work -cached-property @ file:///home/conda/feedstock_root/build_artifacts/cached_property_1615209429212/work -cachetools @ file:///home/conda/feedstock_root/build_artifacts/cachetools_1660055382950/work -certifi==2022.12.7 -cffi @ file:///home/conda/feedstock_root/build_artifacts/cffi_1656782830073/work -charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1661170624537/work -click @ file:///home/conda/feedstock_root/build_artifacts/click_1651215153723/work -click-plugins==1.1.1 -cloudpickle @ file:///home/conda/feedstock_root/build_artifacts/cloudpickle_1653061851209/work -colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1655412516417/work -contourpy @ file:///home/conda/feedstock_root/build_artifacts/contourpy_1667248102913/work -cryptography @ file:///home/conda/feedstock_root/build_artifacts/cryptography-split_1672672374556/work -cycler @ file:///home/conda/feedstock_root/build_artifacts/cycler_1635519461629/work -cytoolz @ file:///home/conda/feedstock_root/build_artifacts/cytoolz_1657553452326/work -dask @ file:///home/conda/feedstock_root/build_artifacts/dask-core_1664589610536/work -dask-glm==0.2.0 -dask-jobqueue @ file:///home/conda/feedstock_root/build_artifacts/dask-jobqueue_1664927514807/work -dask-labextension==6.0.0 -dask-ml @ file:///home/conda/feedstock_root/build_artifacts/dask-ml_1653682129510/work -debugpy @ file:///home/conda/feedstock_root/build_artifacts/debugpy_1666826398899/work -decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work -defusedxml @ file:///home/conda/feedstock_root/build_artifacts/defusedxml_1615232257335/work -distributed @ file:///home/conda/feedstock_root/build_artifacts/distributed_1664591325420/work -entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1643888246732/work -executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1667317341051/work -fastjsonschema @ file:///home/conda/feedstock_root/build_artifacts/python-fastjsonschema_1663619548554/work/dist -ffmpeg-python==0.2.0 -flatbuffers @ file:///home/conda/feedstock_root/build_artifacts/python-flatbuffers_1620718971772/work -flit_core @ file:///home/conda/feedstock_root/build_artifacts/flit-core_1667734568827/work/source/flit_core -fonttools @ file:///home/conda/feedstock_root/build_artifacts/fonttools_1661381334183/work -frozenlist @ file:///home/conda/feedstock_root/build_artifacts/frozenlist_1659556931141/work -fsspec @ file:///home/conda/feedstock_root/build_artifacts/fsspec_1659099796968/work -future @ file:///home/conda/feedstock_root/build_artifacts/future_1649010145299/work -gast @ file:///home/conda/feedstock_root/build_artifacts/gast_1596839682936/work -google-auth @ file:///home/conda/feedstock_root/build_artifacts/google-auth_1660985916368/work -google-auth-oauthlib @ file:///home/conda/feedstock_root/build_artifacts/google-auth-oauthlib_1630497468950/work -google-pasta==0.2.0 -greenlet @ file:///home/conda/feedstock_root/build_artifacts/greenlet_1648882382645/work -grpcio @ file:///home/conda/feedstock_root/build_artifacts/grpc-split_1670307282269/work -h5py @ file:///home/conda/feedstock_root/build_artifacts/h5py_1660488114257/work -HeapDict==1.0.1 -idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1642433548627/work -imagecodecs @ file:///home/conda/feedstock_root/build_artifacts/imagecodecs_1660387676408/work -imageio @ file:///home/conda/feedstock_root/build_artifacts/imageio_1669286839712/work -imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1649960641006/work -importlib-metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1653252797772/work -importlib-resources @ file:///home/conda/feedstock_root/build_artifacts/importlib_resources_1665204935269/work -ipdb @ file:///home/conda/feedstock_root/build_artifacts/ipdb_1624508252788/work -ipykernel @ file:///home/conda/feedstock_root/build_artifacts/ipykernel_1668027051105/work -ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1667140637743/work -ipython-genutils==0.2.0 -jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1659959867326/work -Jinja2 @ file:///home/conda/feedstock_root/build_artifacts/jinja2_1654302431367/work -joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1633637554808/work -json5 @ file:///home/conda/feedstock_root/build_artifacts/json5_1600692310011/work -jsonschema @ file:///home/conda/feedstock_root/build_artifacts/jsonschema-meta_1669172642032/work -jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1654730843242/work -jupyter-server @ file:///home/conda/feedstock_root/build_artifacts/jupyter_server_1669064535452/work -jupyter-server-proxy @ file:///home/conda/feedstock_root/build_artifacts/jupyter-server-proxy_1662628585242/work -jupyter_core @ file:///home/conda/feedstock_root/build_artifacts/jupyter_core_1668030833073/work -jupyterlab @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_1666613090338/work -jupyterlab-pygments @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_pygments_1649936611996/work -jupyterlab_server @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_server_1668171221202/work -keras @ file:///home/conda/feedstock_root/build_artifacts/keras_1669020828024/work/keras-2.11.0-py2.py3-none-any.whl -Keras-Preprocessing @ file:///home/conda/feedstock_root/build_artifacts/keras-preprocessing_1610713559828/work -kiwisolver @ file:///home/conda/feedstock_root/build_artifacts/kiwisolver_1657953076186/work -llvmlite==0.38.1 -locket @ file:///home/conda/feedstock_root/build_artifacts/locket_1650660393415/work -lz4 @ file:///home/conda/feedstock_root/build_artifacts/lz4_1652795536065/work -Markdown @ file:///home/conda/feedstock_root/build_artifacts/markdown_1657921053229/work -MarkupSafe @ file:///home/conda/feedstock_root/build_artifacts/markupsafe_1648737556467/work -matplotlib @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-suite_1667504914367/work -matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1660814786464/work -mistune @ file:///home/conda/feedstock_root/build_artifacts/mistune_1657892024508/work -msgpack @ file:///home/conda/feedstock_root/build_artifacts/msgpack-python_1654260630346/work -multidict @ file:///home/conda/feedstock_root/build_artifacts/multidict_1648882420423/work -multipledispatch==0.6.0 -munkres==1.1.4 -nbclassic @ file:///home/conda/feedstock_root/build_artifacts/nbclassic_1667492839781/work -nbclient @ file:///home/conda/feedstock_root/build_artifacts/nbclient_1665125402713/work -nbconvert @ file:///home/conda/feedstock_root/build_artifacts/nbconvert-meta_1668442474361/work -nbformat @ file:///home/conda/feedstock_root/build_artifacts/nbformat_1665426034066/work -nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1664684991461/work -networkx @ file:///home/conda/feedstock_root/build_artifacts/networkx_1661192904448/work -notebook @ file:///home/conda/feedstock_root/build_artifacts/notebook_1667565639349/work -notebook_shim @ file:///home/conda/feedstock_root/build_artifacts/notebook-shim_1667478401171/work -numba @ file:///home/conda/feedstock_root/build_artifacts/numba_1655473307261/work -numexpr @ file:///home/conda/feedstock_root/build_artifacts/numexpr_1636286792193/work -numpy @ file:///home/conda/feedstock_root/build_artifacts/numpy_1653325313343/work -oauthlib @ file:///home/conda/feedstock_root/build_artifacts/oauthlib_1643507977997/work -opencv-python==4.6.0 -opt-einsum @ file:///home/conda/feedstock_root/build_artifacts/opt_einsum_1617859230218/work -packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1637239678211/work -pandas==1.5.2 -pandocfilters @ file:///home/conda/feedstock_root/build_artifacts/pandocfilters_1631603243851/work -parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work -partd @ file:///home/conda/feedstock_root/build_artifacts/partd_1660316728562/work -pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1667297516076/work -pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work -Pillow @ file:///home/conda/feedstock_root/build_artifacts/pillow_1660385855509/work -pkgutil_resolve_name @ file:///home/conda/feedstock_root/build_artifacts/pkgutil-resolve-name_1633981968097/work -platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1657729053205/work -ply==3.11 -prometheus-client @ file:///home/conda/feedstock_root/build_artifacts/prometheus_client_1665692535292/work -prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1667565496306/work -protobuf==4.21.12 -psutil @ file:///home/conda/feedstock_root/build_artifacts/psutil_1653089170447/work -ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl -pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work -pyarrow==10.0.1 -pyasn1==0.4.8 -pyasn1-modules==0.2.7 -pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work -pyDeprecate==0.3.1 -Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1660666458521/work -PyJWT @ file:///home/conda/feedstock_root/build_artifacts/pyjwt_1652398519695/work -pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1643496850550/work -pyparsing @ file:///home/conda/feedstock_root/build_artifacts/pyparsing_1652235407899/work -PyQt5==5.15.7 -PyQt5-sip==12.11.0 -pyrsistent @ file:///home/conda/feedstock_root/build_artifacts/pyrsistent_1667498685069/work -PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1648857263093/work -python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work -pytorch-lightning @ file:///home/conda/feedstock_root/build_artifacts/pytorch-lightning_1644653088625/work -pytz @ file:///home/conda/feedstock_root/build_artifacts/pytz_1660580468234/work -pyu2f @ file:///home/conda/feedstock_root/build_artifacts/pyu2f_1604248910016/work -PyWavelets @ file:///home/conda/feedstock_root/build_artifacts/pywavelets_1649616400802/work -PyYAML @ file:///home/conda/feedstock_root/build_artifacts/pyyaml_1648757097602/work -pyzmq @ file:///home/conda/feedstock_root/build_artifacts/pyzmq_1666828545060/work -requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1656534056640/work -requests-oauthlib @ file:///home/conda/feedstock_root/build_artifacts/requests-oauthlib_1643557462909/work -rsa @ file:///home/conda/feedstock_root/build_artifacts/rsa_1658328885051/work -scikit-image @ file:///home/conda/feedstock_root/build_artifacts/scikit-image_1660146513757/work -scikit-learn @ file:///home/conda/feedstock_root/build_artifacts/scikit-learn_1659726099166/work -scipy==1.9.3 -Send2Trash @ file:///home/conda/feedstock_root/build_artifacts/send2trash_1628511208346/work -simpervisor @ file:///home/conda/feedstock_root/build_artifacts/simpervisor_1609865618711/work -sip @ file:///home/conda/feedstock_root/build_artifacts/sip_1655764895156/work -six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work -sniffio @ file:///home/conda/feedstock_root/build_artifacts/sniffio_1662051266223/work -sortedcontainers @ file:///home/conda/feedstock_root/build_artifacts/sortedcontainers_1621217038088/work -soupsieve @ file:///home/conda/feedstock_root/build_artifacts/soupsieve_1658207591808/work -SQLAlchemy @ file:///home/conda/feedstock_root/build_artifacts/sqlalchemy_1668277368776/work -stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1667334518791/work -tables @ file:///home/conda/feedstock_root/build_artifacts/pytables_1666850052868/work -tabulate @ file:///home/conda/feedstock_root/build_artifacts/tabulate_1655900837660/work -tblib @ file:///home/conda/feedstock_root/build_artifacts/tblib_1616261298899/work -tensorboard @ file:///home/conda/feedstock_root/build_artifacts/tensorboard_1673674224265/work/tensorboard-2.11.2-py3-none-any.whl -tensorboard-data-server @ file:///home/conda/feedstock_root/build_artifacts/tensorboard-data-server_1670043784580/work/tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl -tensorboard-plugin-wit @ file:///home/conda/feedstock_root/build_artifacts/tensorboard-plugin-wit_1641458951060/work/tensorboard_plugin_wit-1.8.1-py3-none-any.whl -tensorflow @ file:///home/conda/feedstock_root/build_artifacts/tensorflow-split_1671154480251/work/tensorflow_pkg/tensorflow-2.11.0-cp39-cp39-linux_x86_64.whl -tensorflow-estimator @ file:///home/conda/feedstock_root/build_artifacts/tensorflow-split_1671154480251/work/tensorflow-estimator/wheel_dir/tensorflow_estimator-2.11.0-py2.py3-none-any.whl -termcolor @ file:///home/conda/feedstock_root/build_artifacts/termcolor_1657118200573/work -terminado @ file:///home/conda/feedstock_root/build_artifacts/terminado_1666707760008/work -threadpoolctl @ file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1643647933166/work -tifffile @ file:///home/conda/feedstock_root/build_artifacts/tifffile_1660549926389/work -tinycss2 @ file:///home/conda/feedstock_root/build_artifacts/tinycss2_1666100256010/work -toml @ file:///home/conda/feedstock_root/build_artifacts/toml_1604308577558/work -tomli @ file:///home/conda/feedstock_root/build_artifacts/tomli_1644342247877/work -toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1657485559105/work -torch @ file:///home/conda/feedstock_root/build_artifacts/pytorch-recipe_1664817695546/work -torchmetrics @ file:///home/conda/feedstock_root/build_artifacts/torchmetrics_1658640326316/work -torchvision @ file:///home/conda/feedstock_root/build_artifacts/torchvision-split_1658664574149/work -tornado @ file:///home/conda/feedstock_root/build_artifacts/tornado_1648827245914/work -tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1649051611147/work -traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1666115969632/work -typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1656706066251/work -unicodedata2 @ file:///home/conda/feedstock_root/build_artifacts/unicodedata2_1649111919389/work -urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1658789158161/work -wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1600965781394/work -webencodings==0.5.1 -websocket-client @ file:///home/conda/feedstock_root/build_artifacts/websocket-client_1667568040382/work -Werkzeug @ file:///home/conda/feedstock_root/build_artifacts/werkzeug_1660053523487/work -wrapt @ file:///home/conda/feedstock_root/build_artifacts/wrapt_1651495236231/work -xarray @ file:///home/conda/feedstock_root/build_artifacts/xarray_1658844022165/work -yarl @ file:///home/conda/feedstock_root/build_artifacts/yarl_1648966524636/work -zict @ file:///home/conda/feedstock_root/build_artifacts/zict_1651156074437/work -zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1659400682470/work +pandas +sklearn +numpy +cv2 +typing +matplotlib +pickle +bob.bio.video +bob.io.base +bob.pipelines +bob.bio.face +bob.io.image \ No newline at end of file diff --git a/utils/_utils.py b/utils/_utils.py index 0d8a9b4081738695fbb4bf40f3004700708298e2..d9cb8abcb94a6e647b9db498575dd712bff93483 100644 --- a/utils/_utils.py +++ b/utils/_utils.py @@ -10,7 +10,6 @@ import math import pandas as pd import pickle -import yaml SCENARIOS=["indoor_normal_light", "indoor_low_light", "outdoor_lateral_light"] @@ -162,21 +161,3 @@ def create_matchings_for_attacks_oneID(probes_df, single_id): matching = matching[matching['probe_reference_id'].str.contains('set-4')] matching["bio_ref_reference_id"] = single_id return matching - - - -def read_config_file(config_file): - """This method reads a yaml config file - - Args: - config_file ([type]) - - Returns: - [type]: [description] - """ - with open(config_file, 'r') as stream: - try: - config = yaml.safe_load(stream) - return config - except yaml.YAMLError as exc: - print(exc) \ No newline at end of file