This release is a pre-release and may not be stable for production use.
Scroll Renderer
Scroll Renderer is a Python package developed by the Vesuvius Challenge Team 2024. It provides tools for flattening and rendering 3D meshes of segments of the Herculaneum Papyri. It is currently in alpha version.
Requirements
- Python 3.11 (no newer versions are currently supported)
- CUDA 12+ installed on the machine
It is recommended to run this package in a Conda environment to manage dependencies effectively.
Installation
-
Install with pip and accept
vesuviusterms:pip install scroll-renderer vesuvius.accept_terms --yes
You can also install the package in editable mode:
-
Clone the repository and navigate to the project directory, install and accept
vesuviusterms:https://github.com/ScrollPrize/villa.git cd villa cd scroll-renderer pip install -e . vesuvius.accept_terms --yes
Commands
The package provides command-line utilities for working with mesh files. For more options and details on each command, you can use the --help option after any command.
Example Usage
-
Flatten a Mesh
Use the
slim_uvcommand to flatten a mesh with the following options:slim_uv --path 20241025062044_intermediate_mesh.obj --ic harmonic --iter 200
--path: Path to the intermediate mesh file (e.g.,.objfile).--ic: Initial condition; options areharmonicorarap.--iter: Number of iterations.
-
Render a Flattened Mesh
After flattening, use
mesh_to_surfaceto generate a surface render of the mesh:mesh_to_surface 20241025062044_intermediate_mesh_flatboi.obj /mnt/localdisk/scrolls/Scroll5 --r 32
You can also render without having a scroll volume locally (works only with canonical
vesuviusscrolls):mesh_to_surface 20241025062044_intermediate_mesh_flatboi.obj Scroll5 --r 32 --remote
- First argument: Path to the flattened mesh file.
- Second argument: Scroll volume, can be zarr, tifstack or grid cells. It can also be a canonical
vesuviusscroll, likeScroll1 --r: Half number of layers in the surface volume besides the center (e.g.,32will give 65 layers, the middle +- 32).--triangle_batch: Choose how many triangles to process per batch, default5000--max_side_triangle: Choose the max length of the side of a triangle when creating dataset, default10--nr_workers: Choose nr workers to load the dataset--remote: Add this flag to fetch the scroll data from the data server using thevesuviuspackage.
For additional options and usage information, use --help with any command (e.g., slim_uv --help or mesh_to_surface --help).
License
MIT License
Developed by: Vesuvius Challenge Tech Team 2024 (Stephen Parsons, Julian Schilliger, Giorgio Angelotti and Youssef Nader)
Metadata
Release files for scroll-renderer 0.0.3a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scroll_renderer-0.0.3a0.tar.gz | 26.3 kB | Without provenance | Details for scroll_renderer-0.0.3a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scroll_renderer-0.0.3a0-py3-none-any.whl | Python 3 | none | any | Details for scroll_renderer-0.0.3a0-py3-none-any.whl |
Total release size: 53.0 kB
Release files / scroll_renderer-0.0.3a0.tar.gz
| Download URL | scroll_renderer-0.0.3a0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d845e54a9c9f268f290daa2332f34d089072a392e92522386b9edbd3311a592
|
|
BLAKE2b-256 checksum How to use checksums |
d5571d0a9ef6bbbcf34b35addf5d40a2b933c8d6234605f3dab1c24f03d24bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / scroll_renderer-0.0.3a0-py3-none-any.whl
| Download URL | scroll_renderer-0.0.3a0-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bf553798645a2a76117c7a3f4fbc308cfd3350b6cc335acccb539ed5d234dac
|
|
BLAKE2b-256 checksum How to use checksums |
d7e6cb8f60e838fb7f55b78feb5669050d1cf65901b5f21b456b72755c936f93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for scroll-renderer 0.0.3a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.