Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS-specific code in run_midas.py and run_flows_video.py #8

Open
sirisian opened this issue Mar 21, 2021 · 0 comments
Open

OS-specific code in run_midas.py and run_flows_video.py #8

sirisian opened this issue Mar 21, 2021 · 0 comments

Comments

@sirisian
Copy link

I'm running your program from Windows and I noticed a few things.

Very minor, but I needed to install tensorboard as a dependency that isn't listed in the README in order to train.

On lines https://github.com/zhengqili/Neural-Scene-Flow-Fields/blob/main/nsff_scripts/run_midas.py#L84 and 104 you have linux commands for copying and removing files.

I don't know python, but import shutil and this sounded right:

        src_files = os.listdir(imgdir_orig)
        for file_name in src_files:
            full_file_name = os.path.join(imgdir_orig, file_name)
            if os.path.isfile(full_file_name):
                shutil.copy(full_file_name, imgdir)

Also https://github.com/zhengqili/Neural-Scene-Flow-Fields/blob/main/nsff_scripts/run_flows_video.py#L218 and 219 use rm.

shutil.rmtree(mask_dir)
shutil.rmtree(semantic_dir)

When run_flows_video.py runs it puts the motion masks into the image directory. If I copy them to the motion_masks folder then copy the images_512x288 images to the images directory I can begin training. (Assuming that's where they're supposed to be). I'm training on a single 3090, so this might take a while. (I turned off the NaN detection in the recent pull request which seems to have sped things up quite a bit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant