Jérôme BUISINE 51cc7d149d Merge tag 'v0.1.0' into develop | 4 年之前 | |
---|---|---|
launcher | 5 年之前 | |
links | 4 年之前 | |
static | 4 年之前 | |
.gitignore | 4 年之前 | |
Dockerfile | 5 年之前 | |
LICENSE | 5 年之前 | |
Makefile | 5 年之前 | |
README.md | 5 年之前 | |
docker-compose.yml | 4 年之前 | |
manage.py | 5 年之前 | |
requirements.txt | 4 年之前 |
Project for generating users links in order to launch SIN3D application quickly during experiment.
Generate user links (file saved into data
folder):
python links/generate/generate_experiment_link.py --experiment AreSameImagesRandom --experimentId expe1 --scenes Appart1opt02,Bureau1,Cendrier --output expe1.csv
Generate experiment links for each user (file saved into expe
folder):
python links/generate/generate_experiment.py --data links/media/data/expe1.csv --scenes 2 --users 150 --userId 1 --output expe1_user_links.csv
userId
: tell if an userId is used or not (use of index of line from generated output file)The final file is generated and contains data just as follow:
0;sceneName1:::link1;sceneName2:::link2;...;sceneNameN:::linkN
...
N;sceneName2:::link2;sceneName3:::link3;...;sceneNameN:::linkN
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
You can use make commands:
make build
make run
Or simply:
make deploy
Will run build
and run
commands at once.
You also have stop
, remove
, clean
commands:
stop
: stop current container instance if existsremove
: stop and remove container instance if existsclean
: remove docker image if existsConfigure your own URL prefix using WEB_PREFIX_URL
:
WEB_PREFIX_URL=experiments python manage.py runserver
or using docker:
WEB_PREFIX_URL=experiments make deploy