Skip to content

Instantly share code, notes, and snippets.

@andreped
Created April 3, 2023 18:04
Show Gist options
  • Save andreped/cc0789bd711874f792c0991978b2f981 to your computer and use it in GitHub Desktop.
Save andreped/cc0789bd711874f792c0991978b2f981 to your computer and use it in GitHub Desktop.
super-ml-pets-test.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyM8toSDJjj7hktNBidTIibg",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/andreped/cc0789bd711874f792c0991978b2f981/super-ml-pets-test.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"source": [
"# check python and pip versions\n",
"!python -V && pip -V"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "gCj1ULVpDoZV",
"outputId": "03a1410b-fa40-4808-e14f-cb288e36b78b"
},
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Python 3.9.16\n",
"pip 22.0.4 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)\n"
]
}
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "2_VqDuVeCGsI",
"outputId": "5601fc19-b4cf-4551-d689-b9ed4dcad9df"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Cloning into 'super-ml-pets'...\n",
"remote: Enumerating objects: 2838, done.\u001b[K\n",
"remote: Counting objects: 100% (416/416), done.\u001b[K\n",
"remote: Compressing objects: 100% (178/178), done.\u001b[K\n",
"remote: Total 2838 (delta 255), reused 356 (delta 219), pack-reused 2422\u001b[K\n",
"Receiving objects: 100% (2838/2838), 281.32 MiB | 17.01 MiB/s, done.\n",
"Resolving deltas: 100% (1273/1273), done.\n"
]
}
],
"source": [
"# clone the repo\n",
"!git clone https://github.com/andreped/super-ml-pets.git"
]
},
{
"cell_type": "code",
"source": [
"# install dependencies\n",
"!pip install setuptools==66\n",
"!pip install -r super-ml-pets/requirements.txt"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "LB0UVe0CDAuf",
"outputId": "7588b05d-8f6e-44ca-d9c2-739046fba46a"
},
"execution_count": 6,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting setuptools==66\n",
" Downloading setuptools-66.0.0-py3-none-any.whl (1.3 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.3/1.3 MB\u001b[0m \u001b[31m15.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hInstalling collected packages: setuptools\n",
" Attempting uninstall: setuptools\n",
" Found existing installation: setuptools 67.6.1\n",
" Uninstalling setuptools-67.6.1:\n",
" Successfully uninstalled setuptools-67.6.1\n",
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"ipython 7.34.0 requires jedi>=0.16, which is not installed.\u001b[0m\u001b[31m\n",
"\u001b[0mSuccessfully installed setuptools-66.0.0\n",
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting git+https://github.com/andreped/sapai-gym.git@catch-errors (from -r super-ml-pets/requirements.txt (line 2))\n",
" Cloning https://github.com/andreped/sapai-gym.git (to revision catch-errors) to /tmp/pip-req-build-kvfqp6uq\n",
" Running command git clone --filter=blob:none --quiet https://github.com/andreped/sapai-gym.git /tmp/pip-req-build-kvfqp6uq\n",
" Running command git checkout -b catch-errors --track origin/catch-errors\n",
" Switched to a new branch 'catch-errors'\n",
" Branch 'catch-errors' set up to track remote branch 'catch-errors' from 'origin'.\n",
" Resolved https://github.com/andreped/sapai-gym.git to commit 42ed46c3a5895b0ddc70ed1441c2d900fa17dbee\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: setuptools in /usr/local/lib/python3.9/dist-packages (from -r super-ml-pets/requirements.txt (line 1)) (66.0.0)\n",
"Collecting sb3-contrib>=1.7.0\n",
" Using cached sb3_contrib-1.7.0-py3-none-any.whl (79 kB)\n",
"Collecting keyboard\n",
" Using cached keyboard-0.13.5-py3-none-any.whl (58 kB)\n",
"Collecting pyautogui\n",
" Using cached PyAutoGUI-0.9.53.tar.gz (59 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from -r super-ml-pets/requirements.txt (line 6)) (4.65.0)\n",
"Requirement already satisfied: opencv-python in /usr/local/lib/python3.9/dist-packages (from -r super-ml-pets/requirements.txt (line 7)) (4.7.0.72)\n",
"Requirement already satisfied: scikit-image in /usr/local/lib/python3.9/dist-packages (from -r super-ml-pets/requirements.txt (line 8)) (0.19.3)\n",
"Collecting scikit-learn<=1.1\n",
" Using cached scikit_learn-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (30.6 MB)\n",
"Requirement already satisfied: numpy<=1.23.2 in /usr/local/lib/python3.9/dist-packages (from -r super-ml-pets/requirements.txt (line 10)) (1.22.4)\n",
"Collecting pynput\n",
" Using cached pynput-1.7.6-py2.py3-none-any.whl (89 kB)\n",
"Collecting sapai@ git+https://github.com/andreped/sapai.git@update-stats\n",
" Cloning https://github.com/andreped/sapai.git (to revision update-stats) to /tmp/pip-install-ltd997dq/sapai_90479307b87c4e77b03d50331888ce3e\n",
" Running command git clone --filter=blob:none --quiet https://github.com/andreped/sapai.git /tmp/pip-install-ltd997dq/sapai_90479307b87c4e77b03d50331888ce3e\n",
" Running command git checkout -b update-stats --track origin/update-stats\n",
" Switched to a new branch 'update-stats'\n",
" Branch 'update-stats' set up to track remote branch 'update-stats' from 'origin'.\n",
" Resolved https://github.com/andreped/sapai.git to commit bdc16215157a294194085be954d38c9a100a9b53\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: gym~=0.21 in /usr/local/lib/python3.9/dist-packages (from sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (0.25.2)\n",
"Collecting stable-baselines3>=1.7.0\n",
" Using cached stable_baselines3-1.7.0-py3-none-any.whl (171 kB)\n",
"Collecting pymsgbox\n",
" Using cached PyMsgBox-1.0.9.tar.gz (18 kB)\n",
" Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
" Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n",
" Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
"Collecting PyTweening>=1.0.1\n",
" Using cached pytweening-1.0.4.tar.gz (14 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Collecting pyscreeze>=0.1.21\n",
" Using cached PyScreeze-0.1.28.tar.gz (25 kB)\n",
" Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
" Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n",
" Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
"Collecting pygetwindow>=0.0.5\n",
" Using cached PyGetWindow-0.0.9.tar.gz (9.7 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Collecting mouseinfo\n",
" Using cached MouseInfo-0.1.3.tar.gz (10 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Collecting python3-Xlib\n",
" Using cached python3-xlib-0.15.tar.gz (132 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (1.4.1)\n",
"Requirement already satisfied: scipy>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (1.10.1)\n",
"Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (2023.3.21)\n",
"Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (23.0)\n",
"Requirement already satisfied: networkx>=2.2 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (3.0)\n",
"Requirement already satisfied: imageio>=2.4.1 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (2.25.1)\n",
"Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /usr/local/lib/python3.9/dist-packages (from scikit-image->-r super-ml-pets/requirements.txt (line 8)) (8.4.0)\n",
"Requirement already satisfied: joblib>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from scikit-learn<=1.1->-r super-ml-pets/requirements.txt (line 9)) (1.1.1)\n",
"Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from scikit-learn<=1.1->-r super-ml-pets/requirements.txt (line 9)) (3.1.0)\n",
"Collecting evdev>=1.3\n",
" Using cached evdev-1.6.1.tar.gz (26 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: six in /usr/local/lib/python3.9/dist-packages (from pynput->-r super-ml-pets/requirements.txt (line 11)) (1.16.0)\n",
"Collecting python-xlib>=0.17\n",
" Using cached python_xlib-0.33-py2.py3-none-any.whl (182 kB)\n",
"Requirement already satisfied: gym-notices>=0.0.4 in /usr/local/lib/python3.9/dist-packages (from gym~=0.21->sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (0.0.8)\n",
"Requirement already satisfied: cloudpickle>=1.2.0 in /usr/local/lib/python3.9/dist-packages (from gym~=0.21->sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (2.2.1)\n",
"Requirement already satisfied: importlib-metadata>=4.8.0 in /usr/local/lib/python3.9/dist-packages (from gym~=0.21->sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (6.1.0)\n",
"Collecting pyrect\n",
" Using cached PyRect-0.2.0.tar.gz (17 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: pandas in /usr/local/lib/python3.9/dist-packages (from stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (1.4.4)\n",
"Collecting importlib-metadata>=4.8.0\n",
" Using cached importlib_metadata-4.13.0-py3-none-any.whl (23 kB)\n",
"Requirement already satisfied: matplotlib in /usr/local/lib/python3.9/dist-packages (from stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (3.7.1)\n",
"Collecting gym~=0.21\n",
" Using cached gym-0.21.0.tar.gz (1.5 MB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: torch>=1.11 in /usr/local/lib/python3.9/dist-packages (from stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (2.0.0+cu118)\n",
"Collecting pyperclip\n",
" Downloading pyperclip-1.8.2.tar.gz (20 kB)\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: keras in /usr/local/lib/python3.9/dist-packages (from sapai@ git+https://github.com/andreped/sapai.git@update-stats->sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (2.12.0)\n",
"Requirement already satisfied: graphviz in /usr/local/lib/python3.9/dist-packages (from sapai@ git+https://github.com/andreped/sapai.git@update-stats->sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (0.20.1)\n",
"Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=4.8.0->gym~=0.21->sapai-gym==0.1.0->-r super-ml-pets/requirements.txt (line 2)) (3.15.0)\n",
"Requirement already satisfied: sympy in /usr/local/lib/python3.9/dist-packages (from torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (1.11.1)\n",
"Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.9/dist-packages (from torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (2.0.0)\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.9/dist-packages (from torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (3.10.7)\n",
"Requirement already satisfied: jinja2 in /usr/local/lib/python3.9/dist-packages (from torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (3.1.2)\n",
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.9/dist-packages (from torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (4.5.0)\n",
"Requirement already satisfied: cmake in /usr/local/lib/python3.9/dist-packages (from triton==2.0.0->torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (3.25.2)\n",
"Requirement already satisfied: lit in /usr/local/lib/python3.9/dist-packages (from triton==2.0.0->torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (16.0.0)\n",
"Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (1.4.4)\n",
"Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (3.0.9)\n",
"Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (2.8.2)\n",
"Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (4.39.3)\n",
"Requirement already satisfied: importlib-resources>=3.2.0 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (5.12.0)\n",
"Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (0.11.0)\n",
"Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (1.0.7)\n",
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.9/dist-packages (from pandas->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (2022.7.1)\n",
"Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2->torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (2.1.2)\n",
"Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.9/dist-packages (from sympy->torch>=1.11->stable-baselines3>=1.7.0->sb3-contrib>=1.7.0->-r super-ml-pets/requirements.txt (line 3)) (1.3.0)\n",
"Building wheels for collected packages: sapai-gym, pyautogui, evdev, pygetwindow, pyscreeze, PyTweening, gym, mouseinfo, pymsgbox, python3-Xlib, sapai, pyperclip, pyrect\n",
" Building wheel for sapai-gym (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for sapai-gym: filename=sapai_gym-0.1.0-py3-none-any.whl size=9990 sha256=6fa600e8e0f8fbe92552695066918392d78c3476b58abd44ae44675fe888b495\n",
" Stored in directory: /tmp/pip-ephem-wheel-cache-28dkylj0/wheels/31/e6/31/456a469edf2317bb990ebfa6ac0a50a5a5fe8d058e13a896cd\n",
" Building wheel for pyautogui (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for pyautogui: filename=PyAutoGUI-0.9.53-py3-none-any.whl size=36612 sha256=8a4157727d9e6662c1eb514bee709e01238f3a5ca965dae2e38baf0662f157fb\n",
" Stored in directory: /root/.cache/pip/wheels/d8/97/e4/d2edca92a87d3b5fbfb527264750a17b4ba297b9a7cab6e67f\n",
" Building wheel for evdev (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for evdev: filename=evdev-1.6.1-cp39-cp39-linux_x86_64.whl size=98078 sha256=b582e864698b11fa6ee8ec67063871a7ffa09e57d5c5a7e89671f687e9893abd\n",
" Stored in directory: /root/.cache/pip/wheels/d9/dc/a9/bd9d84b0819a9858095ba3c033bddf84c9a6d8b360fe0a3caf\n",
" Building wheel for pygetwindow (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11077 sha256=eb119bc4f0334d7bf311c6bcd71a87ddfea946a5eac0eb67cee97989d0109393\n",
" Stored in directory: /root/.cache/pip/wheels/44/ab/20/423c3a444793767e4e41f8377bc902f77bee212e68dcce85a5\n",
" Building wheel for pyscreeze (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for pyscreeze: filename=PyScreeze-0.1.28-py3-none-any.whl size=13023 sha256=157985f88dd108bac2d97ca43dc6f7a8fe1d49d75bfe508c706395032a85fb3b\n",
" Stored in directory: /root/.cache/pip/wheels/a2/5b/86/99f1d8fac5d92de0ccb3f0d4ad15e3f4278baf75a9b0f20b93\n",
" Building wheel for PyTweening (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for PyTweening: filename=pytweening-1.0.4-py3-none-any.whl size=5852 sha256=ca273170ab99be6d47a0172e71d2540f90a0d05c182be653ecfebb8b4bbcc82c\n",
" Stored in directory: /root/.cache/pip/wheels/a4/5d/d2/ba4c8f82163233ffaadcf383c1e34d7d92635d357d13e7b78d\n",
" \u001b[1;31merror\u001b[0m: \u001b[1msubprocess-exited-with-error\u001b[0m\n",
" \n",
" \u001b[31m×\u001b[0m \u001b[32mpython setup.py bdist_wheel\u001b[0m did not run successfully.\n",
" \u001b[31m│\u001b[0m exit code: \u001b[1;36m1\u001b[0m\n",
" \u001b[31m╰─>\u001b[0m See above for output.\n",
" \n",
" \u001b[1;35mnote\u001b[0m: This error originates from a subprocess, and is likely not a problem with pip.\n",
" Building wheel for gym (setup.py) ... \u001b[?25lerror\n",
"\u001b[31m ERROR: Failed building wheel for gym\u001b[0m\u001b[31m\n",
"\u001b[0m\u001b[?25h Running setup.py clean for gym\n",
" Building wheel for mouseinfo (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10905 sha256=a9a1a0bc031f4611b0356c5af30668fa75770d83423d3b13ee827d956e64db51\n",
" Stored in directory: /root/.cache/pip/wheels/61/73/b9/6fb1131ab36e650206e3aa0ad7a68907b41b32ac2d4f75f543\n",
" Building wheel for pymsgbox (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7419 sha256=3851ffe39df9c0b23140ccfe1668635bdddf6ae647d62aca130e2367efe99bfc\n",
" Stored in directory: /root/.cache/pip/wheels/7f/13/8c/584c519464297d9637f9cd29fd1dcdf55e2a2cab225c76a2db\n",
" Building wheel for python3-Xlib (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109515 sha256=d148112312fc63f34ece3517833d065c65752449b2bec24c3accb834481c5f89\n",
" Stored in directory: /root/.cache/pip/wheels/e8/f5/f4/4c7032e17a250a7327c4fa4d4807452558e04487c783bcde39\n",
" Building wheel for sapai (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for sapai: filename=sapai-0.1.0-py3-none-any.whl size=67008 sha256=760ca89a4652e5d9888951543b429231a2b801f091f3cc7b53f1a53e09e829c0\n",
" Stored in directory: /tmp/pip-ephem-wheel-cache-28dkylj0/wheels/49/2e/2c/5c132849358c5132d0ad1b4af3b1e036b541f03b40ab92c136\n",
" Building wheel for pyperclip (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11135 sha256=f9baead1ac2bd9327485802d890755b35111ceed6b6ad5fc4cbb633f78ad05b4\n",
" Stored in directory: /root/.cache/pip/wheels/0c/09/9e/49e21a6840ef7955b06d47394afef0058f0378c0914e48b8b8\n",
" Building wheel for pyrect (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11192 sha256=4c36ae464e1d5148f963fd17209b243a18025ee8521f15fbef75c3eca5098e3e\n",
" Stored in directory: /root/.cache/pip/wheels/25/80/fa/27bb4a1c2e21f64ec71390489d52e57b7cc8afbe79bd595c5e\n",
"Successfully built sapai-gym pyautogui evdev pygetwindow pyscreeze PyTweening mouseinfo pymsgbox python3-Xlib sapai pyperclip pyrect\n",
"Failed to build gym\n",
"Installing collected packages: PyTweening, python3-Xlib, pyscreeze, pyrect, pyperclip, pymsgbox, keyboard, evdev, python-xlib, pygetwindow, mouseinfo, importlib-metadata, gym, scikit-learn, pynput, pyautogui, stable-baselines3, sapai, sb3-contrib, sapai-gym\n",
" Attempting uninstall: importlib-metadata\n",
" Found existing installation: importlib-metadata 6.1.0\n",
" Uninstalling importlib-metadata-6.1.0:\n",
" Successfully uninstalled importlib-metadata-6.1.0\n",
" Attempting uninstall: gym\n",
" Found existing installation: gym 0.25.2\n",
" Uninstalling gym-0.25.2:\n",
" Successfully uninstalled gym-0.25.2\n",
" Running setup.py install for gym ... \u001b[?25l\u001b[?25hdone\n",
"\u001b[33m DEPRECATION: gym was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368\u001b[0m\u001b[33m\n",
"\u001b[0m Attempting uninstall: scikit-learn\n",
" Found existing installation: scikit-learn 1.2.2\n",
" Uninstalling scikit-learn-1.2.2:\n",
" Successfully uninstalled scikit-learn-1.2.2\n",
"Successfully installed PyTweening-1.0.4 evdev-1.6.1 gym-0.21.0 importlib-metadata-4.13.0 keyboard-0.13.5 mouseinfo-0.1.3 pyautogui-0.9.53 pygetwindow-0.0.9 pymsgbox-1.0.9 pynput-1.7.6 pyperclip-1.8.2 pyrect-0.2.0 pyscreeze-0.1.28 python-xlib-0.33 python3-Xlib-0.15 sapai-0.1.0 sapai-gym-0.1.0 sb3-contrib-1.7.0 scikit-learn-1.1.0 stable-baselines3-1.7.0\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"# run simple train experiment\n",
"!python super-ml-pets/main.py --task train --nb_steps 1000 --nb_games 1000 --nb_retries 1"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "0OR_jaeZDJcA",
"outputId": "d7890d98-c12c-410b-f372-aa0a4565b437"
},
"execution_count": 7,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"2023-04-03 18:02:33.204891: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n",
"To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n",
"2023-04-03 18:02:34.357887: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
"INFO utils.py 160 NumExpr defaulting to 2 threads.\n",
"Logging to ./history/history_rl_model/\n",
"INFO train_agent.py 66 Training from scratch...\n",
"INFO train_agent.py 71 Starting training...\n",
"---------------------------------\n",
"| rollout/ | |\n",
"| ep_len_mean | 31.8 |\n",
"| ep_rew_mean | 0.0437 |\n",
"| time/ | |\n",
"| fps | 93 |\n",
"| iterations | 1 |\n",
"| time_elapsed | 21 |\n",
"| total_timesteps | 2048 |\n",
"---------------------------------\n",
"INFO train_agent.py 90 One full iter is done\n",
"INFO train_agent.py 113 Predicting...\n",
"Games:: 100% 1000/1000 [00:12<00:00, 78.10it/s]\n",
"INFO train_agent.py 127 50.70000000000026 1000 0.050699999999999995\n"
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment