Download db.sqlite3
from Google Drive: https://drive.google.com/file/d/1JYzA614WdWHvUzBrlpSnvto0V8l8HVm1/view?usp=sharing
Unzip it into this folder and rename it to db.sqlite3
.
>>> import init
>>> init.init()
>>> from nasbench101.models import NASBench101Result
>>> NASBench101Result.objects.filter(flops__gt=10000) # flops > 10000
>>> NASBench101Result.objects.filter(flops__lt=10000) # flops < 10000
>>> NASBench101Result.objects.filter(flops__lt=10000, params__gt=1) # flops < 10000 and params > 1
>>> import init
>>> init.init()
>>> from nasbench101.models import NASBench101Result
>>> x = NASBench101Result.objects.filter(flops__gt=10000)[: 10] # get first 10 results
>>> x = x[0]
>>> x.flops = 100
>>> x.save()
>>> import init
>>> init.init()
>>> from nasbench101.models import NASBench101Result
>>> NASBench101Result.objects.filter(index__lt=1000).order_by('?')[: 10] # Randomely sample 10 results
python manage.py runserver 0.0.0.0:8000
# usage: python manage.py runserver <IP>:<Port>
This will run a webserver on your computer(port: 8000)
Open http://localhost:8000/admin/
Login with:
Username: test
Password: 123321
Learn more about database, please visit https://docs.djangoproject.com/en/4.1/
Codes are developed upon: NAS-Bench-101 , NAS-Bench-201, NAS-Bench-301 , NATS-Bench , Once for All , Django