ModelPack license installation will depend on the way it is used. In this article, we explain how to install the license file in either of the valid ways.
Extracting MAC Address
Python Package
To run ModelPack as a Python package assumes you are using a host PC and the tool will be installed via pip on a virtual environment (See ModelPack Installation guide). To request the license from Au-Zone Technologies it is recommended to provide the MAC address of the host where ModelPack is supposed to be running.
Windows
The command below will print the whole list of MAC addresses from your host computer. Only one of them must be sent for the license.
ipconfic /all
Linux
In case you are using a Linux interface just run
ifconfig
Docker Container
Docker has its own rule to assign MAC addresses to containers. The first rule is based on the first creation, and at this time, docker will create a container and assign a MAC address to it. The second rule is based on the non-vendor MAC address assignment. Docker only allows MAC addresses in the range 02:42:ac:**:**:**. The first three values should be 02:42:ac since they are not associated with any vendor.
To request a MAC address from a docker container run the following command:
docker run \
--entrypoint /usr/sbin/ifconfig \
deepview/modelpack:latest \
eth0
The command above will print the network interface information from the docker container:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.2 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ac:11:00:02 txqueuelen 0 (Ethernet)
RX packets 3 bytes 306 (306.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The MAC address was highlighted in the command output. That address was assigned by the first-time used rule. To assign a new MAC address to our container run the following command:
docker run \
--entrypoint /usr/sbin/ifconfig \
--mac-address 02:42:ac:de:ad:01 \
deepview/modelpack:latest \
eth0
Now the container will have a new MAC address pointed by: 02:42:ac:de:ad:01
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.2 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ac:de:ad:01 txqueuelen 0 (Ethernet)
RX packets 3 bytes 306 (306.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Note: It is important to use a non-vendor MAC, otherwise the container will not have internet and the License will not be validated.
eIQ Portal
eIQ Portal handles licenses automatically and no extra work needs to be done.
License Installation
The license will be provided as a text file called modelpack.lic. Do not rename this file ever.
When training ModelPack from a Python package two options are available:
- To use the parameter --license on the command line and assign the path to modelpack.lic file.
- To create an environment variable called DEEPVIEW_LICENSES and assign the path to the file to it.
If ModelPack is trained from Docker, the license file should be in the current directory within the licenses folder: licenses/modelpack.lic. As an additional way, it is possible to modify the command line parameters and add the relative path to the license file when calling the docker container. Notice that the parameters received by docker container entrypoints demand to mount volumes and could lead us to confusion.
Home (ModelPack 2) | Next (ModelPack Installation) |
Comments
0 comments
Please sign in to leave a comment.