Download RUN.md from LOPATA-AI-Hub/neuroconstructor-study: direct link, hf CLI and curl.
- Browser
- Download file 4.69 kB
-
https://huggingface.co/spaces/LOPATA-AI-Hub/neuroconstructor-study/resolve/main/RUN.md
- Command line
-
hf download hf://spaces/LOPATA-AI-Hub/neuroconstructor-study/RUN.md
-
curl -L -o RUN.md https://huggingface.co/spaces/LOPATA-AI-Hub/neuroconstructor-study/resolve/main/RUN.md
Запуск / Running a build
Скачайте файл .lopatanet из карточки выбранного размера. Модели и выученные связи упакованы вместе. Для распаковки нужно свободное место примерно под ещё одну копию файла. В ЛОПАТЕ с Нейроконструктором откройте Эксперименты → Тесты → Нейроконструктор → Про. Укажите картинку, текст и две записи, нажмите «Получить ответ из файла модели» и выберите скачанный файл. Для встроенной самопроверки есть кнопка «Проверить готовый файл». Все три сборки поддерживает испытанная версия 0.9.4-dev. Для самостоятельного запуска доступны инструкции ниже.
Download the model file and the runtime wheel. For a source installation use the corresponding SDK source. Allow temporary disk space for the unpacked weights. The tested stack was Python 3.12, PyTorch 2.10.0 with CUDA 12.6, Transformers 5.3.0, NumPy 2.5.3 and Pillow 11.3.0. Install an appropriate build of PyTorch for your system first.
python -m pip install ./lopata_neuro-1.2.0-py3-none-any.whl
python -m lopata_neuro.cli check --model LOPATA-trio.lopatanet
Medium and Heavy. OCR and layout require PaddlePaddle 3.2.1, NumPy and Pillow in their own Python environment. A Windows example for PowerShell follows. The LOPATA desktop app manages this interpreter when running inside the app.
py -3.12 -m venv .paddle
& .\.paddle\Scripts\python.exe -m pip install paddlepaddle==3.2.1 numpy Pillow
$env:LOPATA_PADDLE_PYTHON = (Resolve-Path .\.paddle\Scripts\python.exe).Path
python -m lopata_neuro.cli check --model LOPATA-medium-6.lopatanet
For Heavy use LOPATA-heavy-6.lopatanet. In check, matched counts decisions that match the saved answers and correct counts decisions that match ground truth. The package check has its own inputs. To repeat the published 32-task evaluation, unpack benchmark.zip and run the supplied script from the folder containing the extracted benchmark directory.
python benchmark/replay.py --model LOPATA-trio.lopatanet
python -m lopata_neuro.cli predict --model LOPATA-trio.lopatanet --image benchmark/original/audit-01.png --text "use the second word" --audio benchmark/original/111.wav benchmark/original/103.wav
The example is task 6. The correct answer is top left, slot 0. The Light build chose bottom left (2), Medium chose top left (0), and Heavy chose top right (1). Use --device cpu to request CPU execution. Slot order is top left (0), top right (1), bottom left (2), bottom right (3).
В архиве benchmark.zip лежат исходные размеченные задания, две дополнительные серии, сохранённые ответы и короткий скрипт для повторения итоговой проверки. Для запуска в своей программе можно открыть любой из трёх файлов через open_model и передать произвольную картинку, инструкцию и две записи WAV (моно PCM 16 бит). Модель вернёт выбранную ячейку. По аудио выводится ответ классификации. Собственного голосового ответа у этих сборок нет.
from lopata_neuro import open_model
with open_model("LOPATA-trio.lopatanet") as model:
answer = model.predict("benchmark/original/audit-01.png", "use the second word",
["benchmark/original/111.wav", "benchmark/original/103.wav"])
print(answer["slot"], answer["position"])
Light · Medium · Heavy · LOPATA on GitHub