Skip to content

Commit

Permalink
編輯註解
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLiLee committed Oct 3, 2023
1 parent 21ea380 commit 51f494a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 75 deletions.
2 changes: 1 addition & 1 deletion SDG/SDG_010_BackgroundObjectPlacementRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BackgroundObjectPlacementRandomizer:
__error_check(): Check assigned background object assets folder path isn't empty.
__load_object(): Load asset from other blendfile to the current blendfile.
__posson_disc_sampling(): Using poisson disk sampling algorithm to generate the sampling.
__import_background_object_asset(): Import a number of __n_particle background objects into current blender scene.
__import_background_object_asset(): Import __n_particle background objects into the current Blender scene.
background_object_placement_randomize(): Generate background.
"""
Expand Down
3 changes: 2 additions & 1 deletion SDG/SDG_020_ForegroundObjectPlacementRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ForegroundObjectPlacementRandomizer:
num_foreground_object_in_scene_range (dict of str: int): The distribution of the number of retail items within the blender scene.
__num_foreground_object_in_scene (int): The number of retail items within the blender scene.
foreground_area (list of float): Spatial distribution area of foreground objects.
__foreground_domain_size (numpy.ndarray): Spatial distribution area of foreground objects(convert foreground_area to ndarray).
foreground_poisson_disk_sampling_radius (float): Foreground objects separation distance.
asset_foreground_object_folder_path (str): The path to foreground object assets.
__foreground_object_collection (bpy.types.Collection): The blender collection data-block of foreground objects.
Expand All @@ -34,7 +35,7 @@ class ForegroundObjectPlacementRandomizer:
__error_check(): Check assigned background object assets folder path isn't empty.
__load_object(): Load asset from other blendfile to the current blendfile.
__posson_disc_sampling(): Using poisson disk sampling algorithm to generate the sampling.
__import_foreground_object_asset(): Import a number of __n_particle foreground objects into current blender scene.
__import_foreground_object_asset(): Import __n_particle foreground objects into the current Blender scene.
foreground_object_placement_randomize(): Generate foreground.
"""
Expand Down
2 changes: 1 addition & 1 deletion SDG/SDG_030_OccluderPlacementRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class OccluderPlacementRandomizer:
__error_check(): Check assigned occlusion object assets folder path isn't empty.
__load_object(): Load asset from other blendfile to the current blendfile.
__posson_disc_sampling(): Using poisson disk sampling algorithm to generate the sampling.
__import_occluder_asset(): Import a number of __n_particle occlusion objects into current blender scene.
__import_occluder_asset(): Import __n_particle occluder objects into the current Blender scene.
occluder_placement_randomize(): Generate occlusion.
"""
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_050_TextureRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import random
import sys


class TextureRandomizer:
"""
A randomizer class which randomly select different PBR material and apply it to the surface of the objects.
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_051_SimpleTextureRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import random
import sys


class SimpleTextureRandomizer:
"""
A randomizer class which randomly select different image textures from Freiburg Groceries dataset and apply it to the surface of the objects.
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_060_RotationRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import random
from mathutils import Euler


class RotationRandomizer:
"""
A randomizer class which randomly rotates the background shapes and occluder objects.
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_070_UnifiedRotationRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import random
from mathutils import Euler


class UnifiedRotationRandomizer:
"""
A randomizer class which assigns a random rotation to all foreground (retail products) objects.
Expand Down
9 changes: 1 addition & 8 deletions SDG/SDG_080_LightRandomizer.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
""" LightRandomizer
The Scene contains four directional lights, three of which light all objects, and one lights the background only.
The background light has a very high intensity range and only turns on with a small probability.
This Randomizer is tasked with randomizing the intensity and color of all lights, as well as deciding whether the intense background light should be on.
"""

import bpy
import os
from glob import glob
import random
import math
import sys


class LightRandomizer:
"""
A randomizer class which randomly select a high dynamic range image(HDRI) as scene lighting. The HDRIs are download from Poly Haven.
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_090_CameraRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import numpy as np
import random


class CameraRandomizer:
"""
A randomizer class which simulates vary camera sensor effects - chromatic aberration, blur, motion blur ,exposure,
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_100_YOLOLabeler_IDMask.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import datetime
import os


class YOLOLabeler:
"""
A class which render the current blender scene, outputs the synthetic image(PNG format) and generate the foreground objects annotation/labeling
Expand Down
1 change: 1 addition & 0 deletions SDG/SDG_400_Looper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import collections
import time


class Looper:
"""
A class for repeatedly run the file SDG_300_DataGenerator.py in Blender, this class also provide the Estimated time consumption
Expand Down
64 changes: 0 additions & 64 deletions _includes/data.html

This file was deleted.

0 comments on commit 51f494a

Please sign in to comment.