-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme-install.txt
57 lines (48 loc) · 1.9 KB
/
readme-install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# My process for installing mycroft, transformers, and cozmo sdk on Ubuntu 20.04.3 LTS.
# Then creating two skills to use mycroft to capture speach and send it as input to the
# model and send the output from the model to cozmo.
# This is a work in progress and I will update it as I work on it.
# Cozmo skill __init__.py in the cozmo-skill folder uses wingame animations by default
# as they do not hang up. The random is more interesting but a few animations are non functional.
# There is a list of the non functional ones around somewhere and I will add that to a delete
# list to remove them.
#
# I will find a place to upload the model as its too big for GitHub and share the link here.
#
# I also included my testing chat script for interfacing with the model.
# cinder_chat.py
#
#Install mycroft
sudo apt install git
git clone https://github.com/MycroftAI/mycroft-core.git
bash dev_setup.sh
# Install transformers to run the distilgpt2model
sudo apt install python3-pip
git clone https://github.com/huggingface/transformers.git
pip install -q ./transformers
pip install datasets
pip install torch
# Install cozmo
sudo apt install python-tk
sudo apt-get install python3-pil.imagetk
pip3 install --user 'cozmo[camera]'
git clone https://github.com/anki/cozmo-python-sdk.git
# Install adb server to connect to phone app
sudo apt install adb
adb start-server
# For Cinder skill
mycroft-pip install transformers
mycroft-pip install torch
mycroft-msk create
# For Cozmo Skill
mycroft-pip install 'cozmo[camera]'
mycroft-msk create
# Changing the wake word. The mycroft.conf file has what I used here.
mycroft-config edit user
mycroft-config reload
#Running Mycroft with Cozmo adb has to be on with the Cozmo app enabled in SDK mode.
adb server start
./start-mycroft.sh debug
#stopping mycroft
./stop-mycroft.sh all
#######################################################################################################