diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index d4fd3f6..bea5c24 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -11,7 +11,8 @@
"editorconfig.editorconfig",
"njpwerner.autodocstring",
"ms-python.python",
- "ms-toolsai.jupyter"
+ "ms-toolsai.jupyter",
+ "eamodio.gitlens"
],
"runArgs": [
"--gpus",
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 6e25f47..aa25d8d 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -5,6 +5,7 @@
"editorconfig.editorconfig",
"njpwerner.autodocstring",
"ms-python.python",
- "ms-toolsai.jupyter"
+ "ms-toolsai.jupyter",
+ "eamodio.gitlens"
]
}
diff --git a/README.md b/README.md
index 17877c6..6774eb5 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,7 @@ vscode pytorch-reva
```
Install the [Remote Development extension pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack). \
+Modify variables `UID` and `GID` in [`.devcontainer/Dockerfile`](https://git.inpt.fr/fainsil/pytorch-reva/-/blob/master/.devcontainer/Dockerfile#L6) if necessary.
Reopen the workspace in [devcontainer mode](https://code.visualstudio.com/docs/remote/containers).
### Usage
diff --git a/src/comp.ipynb b/src/comp.ipynb
new file mode 100644
index 0000000..d2b4a1f
--- /dev/null
+++ b/src/comp.ipynb
@@ -0,0 +1,308 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "/home/laurent_fainsin/Documents/unet/.venv/lib/python3.8/site-packages/tqdm/auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
+ " from .autonotebook import tqdm as notebook_tqdm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from PIL import Image\n",
+ "import numpy as np\n",
+ "\n",
+ "import albumentations as A\n",
+ "\n",
+ "%config InlineBackend.figure_formats = ['svg']\n",
+ "import matplotlib.pyplot as plt\n",
+ "%matplotlib inline\n",
+ "\n",
+ "from utils import RandomPaste"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Drafts"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "image/svg+xml": "\n\n\n",
+ "text/plain": [
+ "