56 Commits
Author SHA1 Message Date
821a95ff56 Stb (#3823)
* Move STB internally, comment functions if not

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Comment for now STB including macros

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Modify CMake and tests accordingly

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the license and update the date.

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Move STB to its own directory

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Adding the functrions of image resize and crop

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Update the API not finished yet

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Start adding tests

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add flowers images for test

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Bring image from the coco dataset

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Include all of STB header in this file

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix STB configs

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Clean CMakeLists and look for stb_resize

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Make it compile with STB integrated

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix stb path

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the endif at the end of the file

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Update LICENSE.txt

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update CMakeLists.txt

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/config.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Adding the function and test, not finished

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Remove crop from this PR, and add tests

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Update LICENSE.txt

Co-authored-by: Dirk Eddelbuettel <edd@debian.org>

* Update CMakeLists.txt

Co-authored-by: Dirk Eddelbuettel <edd@debian.org>

* merge master

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add @rcutin suggestion for stb

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Improve the logic to include edge cases

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the bundle that if we are using system stb

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Make it possible to disable the entire build with STB

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the else if condition

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the else condition

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the tests accordindly

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add dummpy functions and complete the Resize function

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Reorder to see if this fix the problem

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the resize for a set of images

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add STATIC for resize and write

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix all the problem with this function

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Be able to resize N images easily

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Add the tests, already passing

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Use sheep instead of Umbrella

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Fix STB directory

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Fix Cmake and docs

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Apply comments from @rcurtin

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Integrate @rcurtin comments

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Fix tests and remove generated images

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Add docs

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Update the API with new resize version

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Fix to resize2

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Adding resize2

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Add the necessary fix to avoid linker errors

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add configs to allow correct repacking

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Redo the ResizeImages function

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Pack the images as tzr.bz2

Signed-off-by: Omar Shrit <omar@shrit.fr>

* Fix the function calls and create an internal one

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Make the message shorter to have under 80 chars

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Solve linter errors

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Solve linter error

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix linter issues

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/tests/image_test.cpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/tests/image_test.cpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/tests/image_test.cpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/tests/image_test.cpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/tests/image_test.cpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Apply @rcurtin comments

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add an example usage of these two functions

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Apply @rcurtin comments

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Re-organize directories for STB

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Apply rcurtin comments

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Merge two resize functions into one

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Get rid of MLPACK_DISABLE_STB

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix forgetting docs

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Update CMake/FindStbImage.cmake

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update CMake/FindStbImage.cmake

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/install.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/compile.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update src/mlpack/core/data/image_resize_crop.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update doc/user/load_save.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Apply comments from @rcurtin

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Adding the test to test if it is identical

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix image tests

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the example

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Add the link and the patch to download the images

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Fix the script and make all of them green

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Remove wget not needed

Signed-off-by: Omar Shrit <omar@avontech.fr>

* Minor style fixes.

* Avoid temporary matrices, and test with multiple different types.

* Update src/mlpack/config.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Update HISTORY.md

Co-authored-by: Ryan Curtin <ryan@ratml.org>

* Fix R build by including bundled STB headers in package.

---------

Signed-off-by: Omar Shrit <omar@avontech.fr>
Signed-off-by: Omar Shrit <omar@shrit.fr>
Co-authored-by: Ryan Curtin <ryan@ratml.org>
Co-authored-by: Dirk Eddelbuettel <edd@debian.org>
2025-02-05 21:06:26 +01:00
Ryan CurtinandDirk Eddelbuettel 9fd815144d Add a cache to documentation check job (#3882)
* A first attempt at overhauling the documentation job with a cache.

* Actually remove files we don't need anymore.

* Fix output from local link checks to give it all at once.

* Add sparse matrices to the set of detected matrix types.

* Fix comparison condition.

* Make a pass to try and re-validate cached links that have not yet expired.

* Compile and link separately so that ccache can take effect.

* Be a little bit smarter about caching.

* Ensure libicu$SO is installed so 'stringi' can be used

Also collapse to remotes calls into one

* Fix style issues that cpplint 2 found (#3884)

* Try to workaround the libicu issue for now.

* Mention new dependency.

---------

Co-authored-by: Dirk Eddelbuettel <edd@debian.org>
2025-02-04 08:04:42 -05:00
Ryan Curtin c8eb3dceac Overhaul documentation homepage (#3836)
* Add pipeline to documentation homepage.

* Fix for mobile devices.

* Add little pipelines to go at the top of each page.

* Overhaul index page.

* Overhaul README to remove redundant material.

* Add installation documentation.

* Update pipelines.

* Allow nesting of deeper details.

* Add a pipeline to the top of the load/save page.

* Add prerequisites link to main pipeline.

* Add better but not finished sidebar.

* Add a couple new documentation pages.

* Fix URLs in svg.

* Incremental checkin.

* Fix Youtube URLs.

* Incremental checkin.

* Minor fixes.

* Add first pass at evaluation/deployment pages.

* Minor spacing and link fixes.

* Flesh out a number of additional pages and write basic compilation documentation.

* Fix some minor issues, and add Docker deployment page (not totally finished yet).

* Add developer documentation landing page.

* Hopefully getting close to the final set of changes here.

* Remove this documentation for now.

* Fix a few links, and the size of the sidebar.

* Fix some additional links.

* Fix a bunch more links.

* Fix another link that now has a better place.

* Refactor test-docs.sh to handle documentation that is a standalone program.

* Fix file exclusions.

* Fully qualify typename.

* Update name of file.

* Fix syntax error.

* Remove files that are not meant to be compiled.

* Also skip the quickstart.

* Move quickstart entry to the top.

* Remove gray coloring of binding documentation.

* Update name of sidebar link.

* Update to working link.

* Fix Wikipedia anchor.
2024-12-20 13:36:12 -05:00
Ryan Curtin 7ffdfd9ca6 Refactor tree documentation according to feedback. 2024-09-17 17:09:05 -04:00
Ryan Curtin f21ce5016d Fix minor issues in examples. 2024-09-12 19:36:09 -04:00
Ryan Curtin 763d0f6c31 Merge remote-tracking branch 'origin/master' into core-into-multiple-pages 2024-09-09 14:02:49 -04:00
Ryan Curtin 2b7be1ab9e Build sidebar correctly for core pages. 2024-09-07 16:02:06 -04:00
Ryan Curtin f34fbefd84 Oh, oops, I just have it all backwards. 2024-09-06 17:00:38 -04:00
Ryan Curtin f508824bb2 Revert "Try changing the bash formula... I thought that one would work though?"
This reverts commit db85ca95e4.
2024-09-06 16:59:34 -04:00
Ryan Curtin db85ca95e4 Try changing the bash formula... I thought that one would work though? 2024-09-06 12:53:16 -04:00
Ryan Curtin 76418836b6 Is the environment variable being set? 2024-09-05 09:30:34 -04:00
Ryan Curtin 17ed9ec49f Merge branch 'master' into msi-install-headers 2024-09-04 11:58:28 -04:00
Ryan Curtin 77db99f838 Allow disabling the checks on the HTML. 2024-08-31 11:14:36 -04:00
Ryan Curtin f8f753220b Oops, didn't mean to commit this. 2024-08-23 17:24:20 -04:00
Ryan Curtin 4486c1246c Templatize the rest of the distributions and add relevant documentation. 2024-08-23 10:51:14 -04:00
Ryan Curtin 44361ab002 Filter out 400 responses. 2024-07-08 15:11:17 -04:00
Ryan Curtin 9f320eaeda Print the program that failed when it fails (for easier debugging). 2024-07-01 15:32:23 -04:00
Ryan Curtin 9d81702642 Ignore 503s since they are supposed to be temporary. 2024-07-01 10:57:29 -04:00
Ryan Curtin 312a476e98 Oops, re-add HISTORY.md. 2024-06-10 15:29:27 -04:00
Ryan Curtin 8566c4476c Attempt to work around Windows build failure that is unrelated to PCH. 2024-06-09 21:00:13 -04:00
Ryan Curtin 2181791ccf Actually, this works now, so remove the inaccurate message. 2024-05-26 08:36:31 -04:00
Ryan Curtin 71ba2ae75f Minor fixes for release-mlpack.sh. 2024-05-26 08:35:03 -04:00
Ryan Curtin 401ede16e3 Fix bad links in new developer documentation. 2024-05-25 20:57:01 -04:00
Ryan Curtin 22ff9cb245 Merge branch 'master' into website-revamp 2024-05-24 07:22:00 -06:00
Ryan Curtin b6ac5482b3 Fix naming of unscoped bash variables. 2024-05-19 12:22:21 -04:00
Ryan Curtin 7f4b7e41b5 Revamp sidebar: make sure it is the same across regular and binding documentation pages. 2024-05-07 10:27:28 -04:00
Ryan Curtin 2a217dec05 Merge remote-tracking branch 'origin/master' into website-revamp 2024-05-02 18:16:54 -04:00
Ryan Curtin 0e9491384a Update HISTORY.md so that it is also built into a webpage. 2024-05-02 13:40:01 -04:00
Ryan Curtin d8a1529c0b Add a script to check whether anything has changed in the generated Markdown documentation. 2024-05-02 12:56:11 -04:00
Ryan Curtin 07dba17a26 Slightly more descriptive output. 2024-05-02 12:20:26 -04:00
Ryan Curtin 9c2f5910a0 Allow custom sidebars for some files. 2024-05-02 11:13:52 -04:00
Ryan Curtin 7d5dfc4592 Minor changes to build script to allow custom headers and footers. 2024-04-22 12:54:18 -04:00
Ryan Curtin 6a0c5967ec Sometimes the Eigen homepage times out... don't crash on it. 2024-04-11 16:40:06 -04:00
Ryan Curtin e8792de3bc Don't fail on 301s (bans for crawling). 2024-04-03 13:57:55 -04:00
Ryan Curtin 3df0039602 Try to clean up sidebar a little bit. 2024-03-19 16:24:47 -04:00
Ryan Curtin bc793428e6 Add missing methods to documentation. 2024-03-13 12:07:02 -04:00
Ryan Curtin 5169369f22 Add a sidebar to the documentation, along with a script to automatically build it. 2024-03-07 12:06:43 -05:00
Ryan Curtin 9a501e30d2 Fix processing of README anchor links. 2024-03-06 15:54:06 -05:00
Ryan Curtin cd37f4df6c Fix script to handle directories with spaces. 2024-03-06 08:59:41 -05:00
Ryan Curtin 8b87013d94 Fix bash comparison. 2024-03-04 21:10:52 -05:00
Ryan Curtin 6e87276d40 Oops, we need data.csv for matrices.md too. 2024-03-04 20:43:18 -05:00
Ryan Curtin 5469f95fdf Also skip quickstarts (for now). 2024-02-28 20:35:17 -05:00
Ryan Curtin 6a36c3a8a7 One more file to skip. 2024-02-28 19:52:47 -05:00
Ryan Curtin 03bd01a7bc Skip some more files in the documentation build. 2024-02-28 17:53:41 -05:00
Ryan Curtin 11fef6ba0d Tiny documentation fix for list of parameters. 2024-02-28 16:55:15 -05:00
Ryan Curtin fb8cf4edf3 Add a readme for the scripts/ directory. 2024-02-28 16:55:01 -05:00
Ryan Curtin 18fc675820 Add a comprehensive script that will test documentation. 2024-02-28 16:54:01 -05:00
Ryan Curtin 1e90429f69 Add a very simple README. 2024-02-27 11:15:02 -05:00
Ryan Curtin 3bc6f07fb3 Make build script work with README, and fix linting issues. 2024-02-26 20:42:18 -05:00
Ryan Curtin b098670c47 Add a script to build the documentation. 2024-02-26 20:12:48 -05:00