This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int rot = 0; | |
| void setup(){ | |
| size(500,500); | |
| } | |
| void draw(){ | |
| background(255); | |
| pushMatrix(); | |
| rot = rot + 5; | |
| translate(100,100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // what is the position on a circumference? | |
| // given a radius of 'radius' | |
| // need to make relative to the object when touched | |
| // eg: (x, y) = (12 * sin(115.toRadian), 12 * cos(115.toRadian)) | |
| float xPosOnradius = radius * Mathf.Sin(degree * Mathf.Deg2Rad) + transform.position.x; | |
| float zPosOnradius = radius * Mathf.Cos(degree * Mathf.Deg2Rad) + transform.position.z; | |
| float yPos = this.transform.position.y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| conda create -n textgen python=3.10.9 | |
| conda activate textgen | |
| install pytorch: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
| git clone https://github.com/oobabooga/text-generation-webui | |
| cd text-generation-webui | |
| pip install -r requirements.txt | |
| python server.py | |
| # download model | |
| # refresh model list | |
| # load model |
OlderNewer