-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from mwalmsley/main
Bring old dev branch up-to-date
- Loading branch information
Showing
136 changed files
with
4,168 additions
and
7,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git/ | ||
data/example_images/ | ||
data/pretrained_models/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
env: | ||
- EXTRA_DEPENDENCIES=pytorch,tensorflow | ||
# - EXTRA_DEPENDENCIES=pytorch | ||
# tests need both pytorch and tensorflow as they check they agree mathematically | ||
# TODO add skip option for tests so I can consider single build versions | ||
language: python | ||
python: | ||
# - "3.8" # tf 2.8 requires Python 3.7 and above, pytest requires pluggy 1.0.0 which requires python 3.8 | ||
- "3.9" | ||
# command to install dependencies | ||
before_install: | ||
- python --version | ||
- pip install -U pip | ||
- python setup.py install | ||
install: | ||
# let's check all three permutations resolve/install okay | ||
- pip install -U pluggy>=1.0.0 # required to avoid a cryptic error when running tests, requires py>=3.8 | ||
- pip install .[$EXTRA_DEPENDENCIES] | ||
|
||
# command to run tests | ||
script: | ||
- pytest | ||
|
||
# see https://docs.travis-ci.com/user/languages/python/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
cff-version: 1.1.0 | ||
message: "Please cite the following works when using this software: https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.3966W and https://doi.org/10.5281/zenodo.6483175" | ||
authors: | ||
- family-names: Walmsley | ||
given-names: Mike | ||
orcid: https://orcid.org/0000-0002-6408-4181 | ||
- family-names: Lintott | ||
given-names: Chris | ||
- family-names: Géron | ||
given-names: Tobias | ||
- family-names: Kruk | ||
given-names: Sandor | ||
- family-names: Krawczyk | ||
given-names: Coleman | ||
- family-names: Willett | ||
given-names: Kyle W. | ||
- family-names: Bamford | ||
given-names: Steven | ||
- family-names: Kelvin | ||
given-names: Lee S. | ||
- family-names: Fortson | ||
given-names: Lucy | ||
- family-names: Gal | ||
given-names: Yarin | ||
- family-names: Keel | ||
given-names: William | ||
- family-names: Masters | ||
given-names: Karen L. | ||
- family-names: Mehta | ||
given-names: Vihang | ||
- family-names: Simmons | ||
given-names: Brooke D. | ||
- family-names: Smethurst | ||
given-names: Rebecca | ||
- family-names: Smith | ||
given-names: Lewis | ||
- family-names: Baeten | ||
given-names: Elisabeth M. | ||
- family-names: Macmillan | ||
given-names: Christine | ||
title: "Zoobot: Deep learning galaxy morphology classifier" | ||
version: 0.0.3 | ||
date-released: 2022-04-01 | ||
identifiers: | ||
- type: "ascl-id" | ||
value: "2203.027" | ||
- type: "doi" | ||
value: 10.5281/zenodo.6483176 | ||
- type: "bibcode" | ||
value: "2022ascl.soft03027W" | ||
abstract: "Zoobot classifies galaxy morphology with Bayesian CNN. Deep learning models were trained on volunteer classifications; these models were able to both learn from uncertain volunteer responses and predict full posteriors (rather than point estimates) for what volunteers would have said. The code reproduces and improves Galaxy Zoo DECaLS automated classifications, and can be finetuned for new tasks." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM python:3.7-slim | ||
|
||
ENV LANG=C.UTF-8 | ||
|
||
WORKDIR /usr/src/zoobot | ||
|
||
RUN apt-get update && apt-get -y upgrade && \ | ||
apt-get install --no-install-recommends -y \ | ||
build-essential \ | ||
git && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install dependencies | ||
COPY README.md . | ||
COPY setup.py . | ||
RUN pip install -U .[pytorch] | ||
# install the zoobot locally as a package | ||
# COPY setup.py . | ||
# RUN pip install -e . | ||
|
||
# install package | ||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM tensorflow/tensorflow:2.8.0 | ||
|
||
# if you have a supported nvidia GPU and https://github.com/NVIDIA/nvidia-docker | ||
# FROM tensorflow/tensorflow:2.8.0-gpu | ||
|
||
WORKDIR /usr/src/zoobot | ||
|
||
# install dependencies but remove tensorflow as it's in the base image | ||
COPY README.md . | ||
COPY setup.py . | ||
RUN pip install -U .[tensorflow] | ||
|
||
# install package | ||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
data/pretrained_models/decals_dr_train_set_only_m0/checkpoint
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.