Switchy to pyenv and poetry

This commit is contained in:
Ruben van de Ven 2021-03-31 09:41:47 +02:00
parent 0b516a2b32
commit 4746141c62
4 changed files with 4075 additions and 3 deletions

1
.python-version Normal file
View file

@ -0,0 +1 @@
3.7.10

View file

@ -1,14 +1,24 @@
Enable virtualenv and run:
Use pyenv and poetry to set up virtualenv and run:
```
pyenv shell
poetry install
```
Turn numbered svgs into usable arrays:
```
python create_dataset.py --dataset_dir datasets/naam6/
```
Train algorithm: (save often, as we'll use the intermediate steps)
```
```
Train algorithm: (save often, as we'll use the intermediate steps)
```bash
poetry shell
#sketch_rnn_train --log_root=models/naam6 --data_dir=datasets/naam6 --hparams="data_set=[diede.npz,blokletters.npz],dec_model=layer_norm,dec_rnn_size=450,enc_model=layer_norm,enc_rnn_size=300,save_every=50,grad_clip=1.0,use_recurrent_dropout=0,conditional=True,num_steps=5000"
sketch_rnn_train --log_root=models/naam6 --data_dir=datasets/naam6 --hparams="data_set=[diede.npz,blokletters.npz],dec_model=layer_norm,dec_rnn_size=450,enc_model=layer_norm,enc_rnn_size=300,save_every=50,grad_clip=1.0,use_recurrent_dropout=0,conditional=True,num_steps=5000
sketch_rnn_train --log_root=models/naam6 --data_dir=datasets/naam6 --hparams="data_set=[diede.npz,blokletters.npz,pleun.npz],dec_model=layer_norm,dec_rnn_size=450,enc_model=layer_norm,enc_rnn_size=300,save_every=50,grad_clip=1.0,use_recurrent_dropout=0,conditional=True,num_steps=5000"
```
Generate a card:

4042
poetry.lock generated Normal file

File diff suppressed because it is too large Load diff

19
pyproject.toml Normal file
View file

@ -0,0 +1,19 @@
[tool.poetry]
name = "birthcard"
version = "0.1.0"
description = ""
authors = ["Ruben van de Ven <git@rubenvandeven.com>"]
[tool.poetry.dependencies]
python = "~3.7"
magenta = "^1.3"
ipykernel = "^5.5.3"
notebook = "^6.3.0"
svgwrite = "^1.4.1"
tensorflow-gpu = "~=1.15.5"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"