Line Art Data Format
You need to manually set-up the initial data format before start generate the streamlines
Manually Set Up
1. Root Directory

Folder : "_tensor_"
PatchInfo.txt
SepInfo.txt
<Imgname>_00*.png ( The image frame want to set as keyframe )
2. Inside _Tensor_ Directory

Folder : "img" [Input of Segmentation Frame Image]
Naming Format:<Imgname>_00*.png
Folder : "contour_img" [Input of Contour Frame Image]
Naming Format:contour_<Imgname>_00*.png
Related Tools
Quick-Duplicate.bat
For the single image simulation, you can use this windows bat program to quickly duplicate the static single frame input.
@echo off
set /p source_id="Enter Source Name: "
set /p copy_id="Enter Copy Mask Name: "
set /p range="Enter Maximum Range (<99): "
for /l %%i in (0, 1, 9) do (
copy %source_id% %copy_id%_000%%i.png
)
for /l %%i in (10, 1, %range%) do (
copy %source_id% %copy_id%_00%%i.png
)
pause
PatchText.py (Inside Streamlines Corresponding Folder)
You can use the PatchText.py python code to quickly generate PatchInfo.txt and SepInfo.txt

PatchText.py Usage:
Put The Image Patch Inside the folder TextImage
Change the input patch_path filename in the main code
Run the program
Use Mouse Left Click to select the Patch order (click the image patch color)
Press 'q' to exit -> system will auto generate the PatchInfo and SepInfo Information.
System Generated
After Segment and Render Streamlines on each patch, system will auto generate the following files
_data_ : The Generated Tensor Data
Frame info : .obj .seg .txt .xml
Last updated
Was this helpful?