Is there a way to view the contents of an .fsa
alignments file? This seems like the most basic admin/exploration tool, but I've spent 30m looking through docs and forums and search results and can't find it. I've even start looking at the code, but my Python is super-rusty, and my first attempt still wasn't working after about 15m:
Code: Select all
with open( 'foo.fsa', 'rb' ) as foofile:
data = foofile.read()
data = zlib.decompress(data)
data = pickle.loads(data)
print( data )
Still produces noise.
Also, as there an easy way to change the basename used for extracted image filenames inside the alignments file? For example, imagine I originally had a file foo.mp4
that I ran an extraction on, producing a bunch of foo_??????_?.png
image files and a foo_alignments.fsa
file that references the 'foo' basename.
Now imagine I wanted to change the basename of the video and resulting image set. How do I update the contents of the alignments file to conform to my desired new basename?
We do not expose the fsa file since it's not final. That said, the intended way of manipulating the FSA is through the alignments tool (Including the manual tool).
Go to full post
You don't actually need to change the filename in the alignments.fsa since we use the hash of the image to find the matching alignment. In reality we're working away from facesets altogether but aren't there yet.
The only time the basename is used is if you use the "update_hash" job of the Alignment tool, which needs the filenames to match the original file in order to be able to relate the file to the alignments.