Skip to content

Commit

Permalink
Update docs with relative links (#12)
Browse files Browse the repository at this point in the history
* Update documentation deployment workflow

* Update documentation with relative links

* Update Syclops documentation and deployment workflow
  • Loading branch information
aelmiger authored Apr 15, 2024
1 parent 6a3b0c1 commit 3dddd37
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs_deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: Documentation Deployment

on:
push:
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Introduction
# Syclops
![Documentation](https://github.com/dfki-ni/syclops/actions/workflows/docs_deployment.yaml/badge.svg)

<h1 align="center">
<img alt="cgapp logo" src="https://user-images.githubusercontent.com/40243985/222779654-df09c551-3eab-4a08-aa3c-08ab6cfd73ab.png" width="224px"/><br/>
Syclops
</h1>
<p align="center">Syclops is a tool for creating synthetic data from 3D virtual environments.</p>
<!-- <p align="center">
<a href="https://github.com/agri-gaia/syclops-docs/">
<img alt="Documentation" src="https://img.shields.io/badge/Documentation-0.0.0-blue.svg?style=flat-square">
<p align="center">
<a href="https://dfki-ni.github.io/syclops/">
<img alt="Documentation" src="https://img.shields.io/badge/Documentation-blue.svg?style=flat-square">
</a>
</p> -->
</p>

---

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/developement/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The following section provides an overview of the architectural structure of Syclops, helping developers and users understand the interplay between different components.

## Repository Overview
![An overview of how the different repositories work together to create synthetic data in Syclops](/img/docs/syclops_overview.png)
![An overview of how the different repositories work together to create synthetic data in Syclops](../img/docs/syclops_overview.png)

| Component/Folder | Description |
|:---:|:---:|
Expand All @@ -18,7 +18,7 @@ The following section provides an overview of the architectural structure of Syc
The following is a list of relevant files:

- **syclops**
- **cli.py**: Contains the code for the syclops [CLI interface](/usage/command_line). It also orchestrates the preprocessing, postprocessing, and starting of Blender for the synthetic data generation.
- **cli.py**: Contains the code for the syclops [CLI interface](../usage/command_line.md). It also orchestrates the preprocessing, postprocessing, and starting of Blender for the synthetic data generation.
- **syclops/preprocessing**
- **preprocesor.py**: Script that gets called before the scene generation. It adjusts the job description and can create additional files that are needed for the scene generation.
- **syclops/postprocessing**
Expand Down
16 changes: 9 additions & 7 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Introduction

<h1 align="center">
<img alt="cgapp logo" src="/img/logo.png" width="224px"/><br/>
Syclops
</h1>
<figure markdown="span">
![Syclops Logo](img/logo.png){ width="224" }
</figure>


<p align="center">Syclops is a tool for creating synthetic data from 3D virtual environments.</p>
---
# 🎯 Features
Expand All @@ -18,9 +19,10 @@
📦 Easy to use and extend with a modular architecture

# 🔍 Annotations
<div align="center">
<img alt="output-render" src="/img/renders/outputs.gif" width="400px"/><br/>
</div>
<figure markdown="span">
![Syclops Output](img/renders/outputs.gif){ width="400" }
</figure>


Syclops supports a variety of annotated outputs for different use cases. The following outputs are currently supported:

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/usage/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Following is a list of the command line arguments for `syclops`:
| `-log` | Display all log messages in the console. | `False` | Boolean |
| `-tv` | Live display of the procedural textures in a job config. | `None` | String |
| `-if` | Path to the install folder. | `None` | String |
| `-d` | Debugging mode. See [Debugging](/developement/debugging) | `False` | String [scene, blender-code, pipeline-code]
| `-d` | Debugging mode. See [Debugging](../developement/debugging.md) | `False` | String [scene, blender-code, pipeline-code]
8 changes: 4 additions & 4 deletions docs/docs/usage/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A: Make sure you have the correct version of Python installed (3.9 or higher) an

### Q: How do I add new assets to my project?

A: To add new assets, create an `assets.yaml` file in your project directory that defines the asset library and its assets. Then, run `syclops -c` to crawl the assets and update the catalog. For more information, see the [Assets documentation](/usage/assets/assets).
A: To add new assets, create an `assets.yaml` file in your project directory that defines the asset library and its assets. Then, run `syclops -c` to crawl the assets and update the catalog. For more information, see the [Assets documentation](./assets/assets.md).

### Q: I'm getting an error message saying an asset file is missing. What should I do?

Expand All @@ -22,17 +22,17 @@ A: Check that the file paths in your `assets.yaml` file are correct and that the

### Q: My job configuration isn't working as expected. How can I debug it?

A: You can use the `-d` flag to enable debugging mode in Syclops. Use `-d scene` to open the scene in Blender for visual debugging, or `-d blender-code` and `-d pipeline-code` to debug the Blender and pipeline code, respectively. For more information, see the [Debugging documentation](/developement/debugging).
A: You can use the `-d` flag to enable debugging mode in Syclops. Use `-d scene` to open the scene in Blender for visual debugging, or `-d blender-code` and `-d pipeline-code` to debug the Blender and pipeline code, respectively. For more information, see the [Debugging documentation](../developement/debugging.md).

### Q: How do I use dynamic evaluators in my job configuration?

A: Dynamic evaluators allow you to randomize parameter values for each frame in your scene. To use them, replace a fixed value in your job configuration with a dynamic evaluator expression, such as `uniform: [0, 1]` for a uniform random value between 0 and 1. For more examples, see the [Dynamic Evaluators documentation](/usage/job_description/dynamic_evaluators).
A: Dynamic evaluators allow you to randomize parameter values for each frame in your scene. To use them, replace a fixed value in your job configuration with a dynamic evaluator expression, such as `uniform: [0, 1]` for a uniform random value between 0 and 1. For more examples, see the [Dynamic Evaluators documentation](./job_description/dynamic_evaluators.md).

## Rendering

### Q: My renders are taking a long time. How can I speed them up?

A: To speed up rendering, you can try reducing the number of samples per pixel in your sensor configuration, or using a lower resolution for your output images. You can also make sure you're using GPU rendering if you have a compatible graphics card. For more tips, see the [Sensor Configuration documentation](/usage/job_description/sensor_configuration).
A: To speed up rendering, you can try reducing the number of samples per pixel in your sensor configuration, or using a lower resolution for your output images. You can also make sure you're using GPU rendering if you have a compatible graphics card. For more tips, see the [Sensor Configuration documentation](./job_description/config_descriptions/camera.md).

### Q: I'm getting artifacts or noise in my rendered images. What can I do?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ syclops_output_object_positions:
debug_breakpoint: true
```
In the example configuration, the global positions of objects within the scene will be captured with the identifier `obj_pos_1`. Additionally, if the [scene debugging](/developement/debugging/#visually-debug-a-job-file) is active, the scene will break and open in Blender before rendering.
In the example configuration, the global positions of objects within the scene will be captured with the identifier `obj_pos_1`. Additionally, if the [scene debugging](../../../developement/debugging.md#visually-debug-a-job-file) is active, the scene will break and open in Blender before rendering.

## Metadata Output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Pixel Annotation Output is dedicated to providing various pixel-level annota
## Inter Class Segmentation

In Syclops it is possible to have multiple class labels for a single object. This means, that a plant can have the segmentation labels `stem` and `leaf` at the same time.
![Inter Class Segmentation](/img/docs/inter_class_seg.png)
![Inter Class Segmentation](../../../img/docs/inter_class_seg.png)

It has to be configured in the scene description for the object that should have multiple labels. The following example shows how to configure it:

Expand Down Expand Up @@ -61,7 +61,7 @@ syclops_output_pixel_annotation:
- debug_breakpoint: true
```
In the provided configuration, a variety of pixel annotations are set up, each with their unique identifiers. Additionally, if the [scene debugging](/developement/debugging/#visually-debug-a-job-file) is active, the scene will break and open in Blender before rendering.
In the provided configuration, a variety of pixel annotations are set up, each with their unique identifiers. Additionally, if the [scene debugging](../../../developement/debugging.md#visually-debug-a-job-file) is active, the scene will break and open in Blender before rendering.
## Metadata Output
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/usage/job_description/config_descriptions/rgb.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ syclops_output_rgb:
debug_breakpoint: true
```
In this configuration, the RGB output with the identifier "MainView" will have a quality of 200 samples per pixel. Additionally, if the [scene debugging](/developement/debugging/#visually-debug-a-job-file) is active, the scene will break and open in Blender before rendering.
In this configuration, the RGB output with the identifier "MainView" will have a quality of 200 samples per pixel. Additionally, if the [scene debugging](../../../developement/debugging.md#visually-debug-a-job-file) is active, the scene will break and open in Blender before rendering.
## Metadata Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The Structured Light Output generates structured light patterns projected onto the scene, which can be used for 3D reconstruction and depth estimation.

![Dot projected image with stereo reconstruction on the right](/img/docs/dot_projection.png)
![Dot projected image with stereo reconstruction on the right](../../../img/docs/dot_projection.png)

## Configuration Parameters

Expand All @@ -15,7 +15,7 @@ The following table describes each configuration parameter for the Structured Li
| `intensity` | float | The intensity of the projected light pattern. | **Required** |
| `scale` | float | The scale of the light pattern, controlling the density of the dots. | **Required** |
| `samples` | integer | The number of samples per pixel for rendering the structured light image. Higher values result in better quality but slower rendering. | **Required** |
| `debug_breakpoint` | boolean | If set to `true` and the [scene debugging](/developement/debugging/#visually-debug-a-job-file) is active, the rendering process will pause and open Blender before proceeding. | Optional |
| `debug_breakpoint` | boolean | If set to `true` and the [scene debugging](../../../developement/debugging.md#visually-debug-a-job-file) is active, the rendering process will pause and open Blender before proceeding. | Optional |

## Example Configuration

Expand Down
5 changes: 4 additions & 1 deletion docs/docs/usage/job_description/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ Syclops generates a YAML schema that defines the job configuration rules. This s
During asset crawling, Syclops looks for all schema files of the plugins and creates a single ```schema.yaml``` in the install folder.
In order to use the linting features for the job descriptions, the IDE has to be pointed towards the schema file.

<img alt="linting" src="/img/docs/linting.gif" width="500px"/><br/>
<figure markdown="span">
![Linting](../../img/docs/linting.gif){ width="500" }
<figcaption>Linting of job description</figcaption>
</figure>

=== "VSCode"
For Visual Studio Code, the [YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) needs to be installed.
Expand Down
4 changes: 4 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
site_name: Syclops Documentation
site_description: Documentation for the Syclops synthetic data generation tool
site_author: Anton Elmiger
site_url: https://dfki-ni.github.io/syclops/

theme:
name: material
features:
Expand Down

0 comments on commit 3dddd37

Please sign in to comment.