Skip to content

Commit

Permalink
updates for ci;ignore;main.tex;ve.yml; CITEX (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxochicale committed Jun 22, 2022
1 parent 1fa90d7 commit 7eed864
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-miua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- 05-camera-ready
- $ADD_ISSUENUMER_NAME

jobs:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
git config --global core.sshCommand "ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
git clone --depth=1 --branch pdfs [email protected]:xfetus/miua2022.git "$GITHUB_WORKSPACE/deploy"
git clone --depth=1 --branch pdfs [email protected]:budai4medtech/miua2022.git "$GITHUB_WORKSPACE/deploy"
cp -f abstract/latex/main.pdf "$GITHUB_WORKSPACE/deploy/miua2022-abstract.pdf"
cd "$GITHUB_WORKSPACE/deploy"
git add miua2022-abstract.pdf
Expand Down
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,19 @@

## ignores vim temporal files
**/*.swp

## temporal files for local tex build
**/*.aux
**/*.fdb_latexmk
**/*.fls
**/*.log
**/*.nav
**/main.pdf
**/*.snm
**/*.synctex.gz
**/*.toc
**/_minted-main
**/*.bbl
**/*.blg
**/*.out
**/comment.cut
17 changes: 12 additions & 5 deletions abstract/latex/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

\institute{
King's College London, \\
School of Biomedical Engineering \& Imaging Sciences \\
School of Biomedical Engineering \& Imaging Sciences, \\
London SE1 7EU \\
\email{\{thea.bautista, miguel.xochicale\}@kcl.ac.uk} %\and
}
Expand All @@ -41,7 +41,7 @@
We present experiments to show the impact of different image sizes, epochs, data size input, and learning rates for quality image assessment on four metrics: mutual information (MI), fr\'echet inception distance (FID), peak-signal-to-noise ratio (PSNR), and local binary pattern vector (LBPv).
The results show that FID and LBPv have stronger relationship with clinical image quality scores.
The resources to reproduce this work are available at %\\
\url{https://github.com/xfetus/miua2022}.
\url{https://github.com/budai4medtech/miua2022}.
\keywords{
GANs \and
Ultrasound Fetal Imaging \and
Expand All @@ -61,11 +61,12 @@ \section{Introduction}
\begin{figure}
\includegraphics[width=\textwidth]{../figures/dcgan-based-network/versions/drawing-v01.png}%%GITHUB
%\includegraphics[width=\textwidth]{figures/drawing-v01.png}%%OVERLEAF
%\includegraphics[width=\textwidth]{fig01.png} %%ARXIV
\caption{DCGAN architecture for US imaging. Figure is adapted from the work of Radford et al. 2016 \cite{radford2016unsupervised}.} \label{fig1}
\end{figure}

\section{Quality assessment of synthetic fetal head US imaging}
We consider four metrics for image quality assessment: The Fr\'echet Inception Distance (FID), Peak-signal-to-noise ratio (PSNR), Mutual information (MI), and local binary pattern vector (LBPv).
For quality assessment of synthetic fetal head US imaging, we consider four metrics for image quality assessment: The Fr\'echet Inception Distance (FID), Peak-signal-to-noise ratio (PSNR), Mutual information (MI), and local binary pattern vector (LBPv).
FID is one of the most widely used metrics for GANs, where a lower FID indicates better image quality \cite{heusel2017}.
PSNR is a measurement of the ratio between the maximum power of a signal and the difference between the original and synthetic image, where the higher the PSNR is the closer the intensity similarity is between the synthetic and original US images.
MI is a measure of image similarity and indicates the mutual dependence between two images, where the higher the mutual information is the greater the similarity between the images \cite{wang2019}.
Expand All @@ -75,7 +76,8 @@ \section{Experiments and results}
\begin{figure}
\includegraphics[width=\textwidth]{../figures/results/versions/drawing-v02.png}%%GITHUB
%\includegraphics[width=\textwidth]{figures/combined-results-v00.png}%%OVERLEAF
\caption{Regression plots for FID, V8, V20, V143 and V240 with clinician image quality scores (left) and synthetic images from DCGAN64 trained on 300 images after 300 epochs (right).}\label{fig2}
%\includegraphics[width=\textwidth]{fig02.png} %%ARXIV
\caption{Regression plots for FID, V8, V20, V143 and V240 with clinician image quality scores (left) and nine synthetic images of 64x64 pixel size from DCGAN64 trained on 300 images after 300 epochs (right).}\label{fig2}
\end{figure}

Fetal head US images were resized to 64x64 (due to training instability at higher resolutions) and augmentation was applied in the form of random horizontal flipping and rotation to mimic variation in US probe location.
Expand Down Expand Up @@ -103,7 +105,12 @@ \section{Conclusions and future work}
%\bibliographystyle{apalike}
%\bibliography{references}

%%%ARXIV
%%\bibliographystyle{splncs04}
%\bibliographystyle{apalike}
%\input{main.bbl}

%%OTHERS
%\bibliographystyle{abbrvnat}

\end{document}
\end{document}
7 changes: 4 additions & 3 deletions dependencies/conda-virtual-environments/ve.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## USAGE
## cd $HOME/repositories/ ... /create-virtual-environments
## cd ../create-virtual-environments
## conda update --all ## UPDATE ALL base PACKAGES
## conda list -n *VE # show list of installed packages
## conda env create -f ve.yml ## INSTALL
Expand All @@ -25,6 +25,8 @@ dependencies:
- jupyter_contrib_nbextensions # overview over other extensions: https://towardsdatascience.com/jupyter-notebook-extensions-517fa69d2231
- jupyter
- ipywidgets
- monai
- nibabel=3.*
#- Pillow<7.0 # Pillow<7.0 for Python 3.8 https://github.com/python-pillow/Pillow/issues/4130


Expand All @@ -37,7 +39,6 @@ dependencies:
# - seaborn
# - pandas
# - tqdm
# - monai
# - nibabel=3.*
# - imgaug
#- torchaudio
Expand All @@ -52,4 +53,4 @@ dependencies:
## ERROR-scikit-learn=* #https://anaconda.org/anaconda/scikit-learn
## SOLUTION: conda install -n codeVE scikit-learn
## gdown: Google Drive direct download of big files.
#

0 comments on commit 7eed864

Please sign in to comment.