Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
NB: This is still in early development. Use v1 unless you want to contribute to the next version of fastai
To learn more about the library, read our introduction in the paper presenting it.
Note that the docs are in a submodule, so to clone with docs included, you should use:
git clone --recurse-submodules https://github.com/fastai/fastai2
If you're using a fork of fastai2, you'll need to fork the fastai-docs
repo as well.
You can get all the necessary dependencies by simply installing fastai v1: conda install -c fastai -c pytorch fastai
. Or alternatively you can automatically install the dependencies into a new environment:
conda env create -f environment.yml
source activate fastai2
Then, you can install fastai v2 with pip: pip install fastai2
.
Or you can use an editable install (which is probably the best approach at the moment, since fastai v2 is under heavy development):
git clone --recurse-submodules https://github.com/fastai/fastai2
cd fastai2
pip install -e ".[dev]"
You should also use an editable install of fastcore to go with it.
If you want to browse the notebooks and build the library from them you will need nbdev, which you can install with conda or pip.
To use fastai2.medical.imaging
you'll also need to:
conda install pyarrow
pip install pydicom kornia opencv-python scikit-image
To run the tests in parallel, launch:
nbdev_test_nbs
or
make test
For all the tests to pass, you'll need to install the following optional dependencies:
pip install "sentencepiece<0.1.90" wandb tensorboard albumentations pydicom opencv-python scikit-image pyarrow kornia
After you clone this repository, please run nbdev_install_git_hooks
in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.
Before submitting a PR, check that the local library and notebooks match. The script nbdev_diff_nbs
can let you know if there is a difference between the local library and the notebooks.
nbdev_build_lib
or make fastai2
.nbdev_update_lib
.For those interested in offical docker containers for this project, they can be found here.
FAQs
Version 2 of the fastai library
We found that fastai2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.