mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
Outdated repository URL (#1218)
* Update outdated repo url * Update more outdated repo url's
This commit is contained in:
16
README.md
16
README.md
@@ -1,19 +1,19 @@
|
||||
<div align="center">
|
||||
|
||||
[](https://tinygrad.org)
|
||||
[](https://tinygrad.org)
|
||||
|
||||
tinygrad: For something between [PyTorch](https://github.com/pytorch/pytorch) and [karpathy/micrograd](https://github.com/karpathy/micrograd). Maintained by [tiny corp](https://tinygrad.org).
|
||||
|
||||
<h3>
|
||||
|
||||
[Homepage](https://github.com/geohot/tinygrad) | [Documentation](/docs) | [Examples](/examples) | [Showcase](/docs/showcase.md) | [Discord](https://discord.gg/ZjZadyC7PK)
|
||||
[Homepage](https://github.com/tinygrad/tinygrad) | [Documentation](/docs) | [Examples](/examples) | [Showcase](/docs/showcase.md) | [Discord](https://discord.gg/ZjZadyC7PK)
|
||||
|
||||
</h3>
|
||||
|
||||
[](https://github.com/geohot/tinygrad/stargazers)
|
||||
[](https://github.com/geohot/tinygrad/actions/workflows/test.yml)
|
||||
[](https://github.com/tinygrad/tinygrad/stargazers)
|
||||
[](https://github.com/tinygrad/tinygrad/actions/workflows/test.yml)
|
||||
[](https://discord.gg/ZjZadyC7PK)
|
||||
[](https://github.com/geohot/tinygrad)
|
||||
[](https://github.com/tinygrad/tinygrad)
|
||||
|
||||
</div>
|
||||
|
||||
@@ -98,7 +98,7 @@ The current recommended way to install tinygrad is from source.
|
||||
### From source
|
||||
|
||||
```sh
|
||||
git clone https://github.com/geohot/tinygrad.git
|
||||
git clone https://github.com/tinygrad/tinygrad.git
|
||||
cd tinygrad
|
||||
python3 -m pip install -e .
|
||||
```
|
||||
@@ -139,9 +139,9 @@ print(y.grad.numpy()) # dz/dy
|
||||
|
||||
There has been a lot of interest in tinygrad lately. Here are some basic guidelines for contributing:
|
||||
|
||||
- Bug fixes are the best and always welcome! Like [this one](https://github.com/geohot/tinygrad/pull/421/files).
|
||||
- Bug fixes are the best and always welcome! Like [this one](https://github.com/tinygrad/tinygrad/pull/421/files).
|
||||
- If you don't understand the code you are changing, don't change it!
|
||||
- All code golf PRs will be closed, but [conceptual cleanups](https://github.com/geohot/tinygrad/pull/372/files) are great.
|
||||
- All code golf PRs will be closed, but [conceptual cleanups](https://github.com/tinygrad/tinygrad/pull/372/files) are great.
|
||||
- Features are welcome. Though if you are adding a feature, you need to include tests.
|
||||
- Improving test coverage is great, with reliable non-brittle tests.
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ if __name__ == "__main__":
|
||||
lbls = ast.literal_eval(lbls.decode('utf-8'))
|
||||
|
||||
# load image and preprocess
|
||||
url = sys.argv[1] if len(sys.argv) >= 2 else "https://raw.githubusercontent.com/geohot/tinygrad/master/docs/showcase/stable_diffusion_by_tinygrad.jpg"
|
||||
url = sys.argv[1] if len(sys.argv) >= 2 else "https://raw.githubusercontent.com/tinygrad/tinygrad/master/docs/showcase/stable_diffusion_by_tinygrad.jpg"
|
||||
if url == 'webcam':
|
||||
cap = cv2.VideoCapture(0)
|
||||
cap.set(cv2.CAP_PROP_BUFFERSIZE, 1)
|
||||
|
||||
@@ -12,7 +12,7 @@ from tinygrad.state import safe_load, load_state_dict
|
||||
|
||||
|
||||
#Model architecture from https://github.com/ultralytics/ultralytics/issues/189
|
||||
#The upsampling class has been taken from this pull request https://github.com/geohot/tinygrad/pull/784 by dc-dc-dc. Now 2(?) models use upsampling. (retinet and this)
|
||||
#The upsampling class has been taken from this pull request https://github.com/tinygrad/tinygrad/pull/784 by dc-dc-dc. Now 2(?) models use upsampling. (retinet and this)
|
||||
|
||||
#Pre processing image functions.
|
||||
def compute_transform(image, new_shape=(640, 640), auto=False, scaleFill=False, scaleup=True, stride=32):
|
||||
@@ -232,7 +232,7 @@ def label_predictions(all_predictions):
|
||||
|
||||
return dict(class_index_count)
|
||||
|
||||
#this is taken from https://github.com/geohot/tinygrad/pull/784/files by dc-dc-dc (Now 2 models use upsampling)
|
||||
#this is taken from https://github.com/tinygrad/tinygrad/pull/784/files by dc-dc-dc (Now 2 models use upsampling)
|
||||
class Upsample:
|
||||
def __init__(self, scale_factor:int, mode: str = "nearest") -> None:
|
||||
assert mode == "nearest" # only mode supported for now
|
||||
|
||||
Reference in New Issue
Block a user