15 Commits

Author SHA1 Message Date
Michael Hudgins
d4d1518c3d Update references to the GitHub url in JAX codebase to reflect move from google/jax to jax-ml/jax
PiperOrigin-RevId: 676843138
2024-09-20 07:52:33 -07:00
Jake VanderPlas
26f2f97805 Document why 'import name as name' is used 2022-12-14 15:07:04 -08:00
Peter Hawkins
ba557d5e1b Change JAX's copyright attribution from "Google LLC" to "The JAX Authors.".
See https://opensource.google/documentation/reference/releasing/contributions#copyright for more details.

PiperOrigin-RevId: 476167538
2022-09-22 12:27:19 -07:00
Jake VanderPlas
5782210174 CI: fix flake8 ignore declarations 2022-04-21 13:44:12 -07:00
Peter Hawkins
80aec7b25f Documentation improvements. 2022-03-08 09:37:33 -05:00
Jake VanderPlas
245581411e Add PEP484-compatible export for jax and its subpackages 2021-09-13 14:08:48 -07:00
Peter Hawkins
c876efcc2c Move implementation of jax.image to jax._src.image. 2020-10-17 11:37:55 -04:00
johnpjf
be50847cee
Make scale_and_translate take spatial dimensions 2020-09-21 16:20:17 -07:00
John Flynn
7fd7009c23 Expose scale_and_translate as a public function, fix a bug in implementation when translation is not 0.
Change implementation to use native JAX everywhere allowing vmaping and gradients wrt scale and translation.
2020-09-18 13:30:58 -07:00
Claudio Fantacci
ce14409025
Fix jax.image._resize function (#3805)
This PR fixes a bug in jax.image._resize where the local `method_id`
variable may be used without being defined first.
This bug can be easily reproduced by passing to `jax.image.resize`
parameter `method` a `ResizeMethod` instead of an `str`. By doing
this, `method_id` is never defined and the instruction
`if method_id == ResizeMethod.NEAREST` raises an error. Currently,
this can be easily bypassed assigning parameter `method` a `str`.
To fix this bug, it only needs to rename `method_id` to `method`,
the same name of the input parameter.
2020-07-20 13:15:40 -07:00
Peter Hawkins
a017c1088c
Implement nearest neighbor image resizes. (#3743) 2020-07-13 20:27:12 -04:00
Peter Hawkins
9da9156b1b
Change image resize implementation to use a matmul per dimension. (#3720)
* Change image resize implementation to use a matmul per dimension.

This should have better space scaling behaviors than the previous gather approach. In particular, it does not require temporary memory that scales with the batch size or number of features of an image.

* Plumb precision option through to image resize API.
2020-07-12 14:00:10 -04:00
Jake Vanderplas
24c9ee64e4
fix flake error (#3716) 2020-07-10 09:24:51 -07:00
Peter Hawkins
417de0d351
Add jit to jax.image.resize (#3714)
* Add image/ directory to Bazel build.

* Use a jit on jax.image.resize to reduce compilation time.

Relax bfloat16 test tolerance.
2020-07-10 10:32:13 -04:00
Peter Hawkins
b943b31b22
Add jax.image.resize. (#3703)
* Add jax.image.resize.

This is a port of `tf.image.resize()` and the `ScaleAndTranslate` operator.

While I don't expect this implementation to be particularly fast, it is a useful generic implementation to which we can add optimized special cases as the need arises.
2020-07-10 09:57:59 -04:00