Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/amirhertz/geometric-textures
12 September 2023, 15:28:31 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
Revision 087c967a74b023bae3cd874816ab8e0e5e30ddd7 authored by Rana Hanocka on 21 October 2020, 10:05:00 UTC, committed by GitHub on 21 October 2020, 10:05:00 UTC
Update README.md
1 parent 0fb5bfd
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • 087c967a74b023bae3cd874816ab8e0e5e30ddd7
    No releases to show
  • 962e26d
  • /
  • README.md
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:087c967a74b023bae3cd874816ab8e0e5e30ddd7
origin badgedirectory badge Iframe embedding
swh:1:dir:962e26d0c3a21c8c352e3f437e8abd4fa181f3ba
origin badgecontent badge Iframe embedding
swh:1:cnt:35870e8ee25d812c35fb8e58557d805d55b39b71
origin badgesnapshot badge
swh:1:snp:2ffda93bc4e90ae1516ae67f1a7a50d8630a7bad
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 087c967a74b023bae3cd874816ab8e0e5e30ddd7 authored by Rana Hanocka on 21 October 2020, 10:05:00 UTC
Update README.md
Tip revision: 087c967
README.md


### Deep Geometric Texture Synthesis in PyTorch
<img src='https://drive.google.com/uc?export=view&id=1t6WvvyvyZD3_A3XE_mumPBxS1RuJGyue' align="right" width=300>
<b>SIGGRAPH 2020 <a href="https://arxiv.org/abs/2007.00074" target="_blank">[Paper]</a> <a href="https://ranahanocka.github.io/geometric-textures/" target="_blank">[Project Page]</a></b>
<br><br>
Deep Geometric Texture Synthesis is an approach for learning the local geometric textures present within a 3D mesh model. This can be used to learn the unknown 3D geometric texture statistics from a single 3D model, and then synthesizes them on different 3D models.
This repository contains the code for: 
<br><br>
(1) creating multi-scale training data 
<br><br>
(2) training a series of multi-scale generators
<br><br>
(3) synthesizing the learned geometric textures on unseen models

#### Installation
- Clone this repo `git clone https://github.com/amirhertz/geometric-textures.git`.
- Install via conda environment `conda env create -f environment.yml` (creates an environment called dgts)

#### Jupyter Demo
We provide an <a href="https://github.com/amirhertz/geometric-textures/blob/master/demo.ipynb">End-to-End Notebook</a> which covers the 3 steps above. Or you can run each step seperately below. To use the Jupyter demo you should additionally install: jupyter, requests, and pytorch-gpu 

#
### Training Demo

#### Download Example Data
First get the multi-scaled training inputs already prepared by running
```bash
bash ./scripts/train/get_train_data.sh
```

#### Running Training
The example scripts can be found in `scripts/train`. If using conda env first activate env e.g. `conda activate dgts`, then from the root directory:
```bash
bash ./scripts/train/virus_ball.sh
```
will train on the spikey-ball from the paper. There is also a demo script for the "sphere rail" and the lizard.
#
### Inference Demo

#### Get Trained Weights & Some Demo Data
```bash
bash ./scripts/inference/get_pretrained_data.sh
```
Note that if you already ran the training demo from above, this will overwrite some your training snapshots. 

#### Unconditional & Coarse Mesh Generation 
This will generate unconditional & conditioned on coarse mesh generative results (Fig. 5 from the paper):
```bash
bash ./scripts/inference/anky_generate.sh
```

#### Progressively Add Geometric Texture
This will generate a series of progressive textures. The target mesh will progressively gain textures, starting from a low-level, generator, up to a finer resolution generator. This results in a series of <i>animated</i> textures.
```bash
bash ./scripts/inference/sphere_rail_animate.sh
```
#
### Create Training Data Demo

#### Download Example Data
First get some example 3D meshes with geometric texture
```bash
bash ./scripts/gt_optimization/get_demo_data.sh
```

#### Running Optimization
The example scripts can be found in `scripts/gt_optimization`. For example, run the following from the root directory
```bash
bash ./scripts/gt_optimization/covid.sh
```
which will generate the coronavirus from the paper.
#
### Citation
If you find this code useful, please consider citing our paper
```
@article{Hertz2020deep,
  title = {Deep Geometric Texture Synthesis},
  author = {Hertz, Amir and Hanocka, Rana and Giryes, Raja and Cohen-Or, Daniel},
  year = {2020},
  issue_date = {July 2020}, 
  publisher = {Association for Computing Machinery}, 
  volume = {39}, 
  number = {4}, 
  issn = {0730-0301},
  url = {https://doi.org/10.1145/3386569.3392471},
  doi = {10.1145/3386569.3392471},
  articleno = {108},
  journal = {ACM Trans. Graph.} 
}
```
#
### Questions / Issues
If you have questions or issues running this code, please open an issue.
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top