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

where is run.sh? #10

Open
dfldylan opened this issue Sep 22, 2023 · 3 comments
Open

where is run.sh? #10

dfldylan opened this issue Sep 22, 2023 · 3 comments

Comments

@dfldylan
Copy link
Contributor

Hello, in your readme.md file for data-generate, it mentions:
bash run.sh YOUR_SAVEDIR
Where is the run.sh located?

@syguan96
Copy link
Owner

OUTPUT_SCENES_DIR=$1
mkdir $OUTPUT_SCENES_DIR
for seed in `seq 1 1`; do
        python create_physics_scenes.py \
                --output $OUTPUT_SCENES_DIR \
                --seed $seed \
                --default-fluid \
                --default-box \
                --default-viscosity \
                --default-density \
                --default-vel \
                --obj2volume_scale 1.0
done 


dirs=`ls $OUTPUT_SCENES_DIR`
for dir in $dirs; do
    mkdir $OUTPUT_SCENES_DIR/$dir/mesh
    python create_surface_meshes.py \
           --input_glob "$OUTPUT_SCENES_DIR/$dir/output/fluid*.npz" \
           --outdir $OUTPUT_SCENES_DIR/$dir/mesh/
done

@syguan96
Copy link
Owner

FYI

@dfldylan
Copy link
Contributor Author

dfldylan commented Oct 1, 2023

Thanks!

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

2 participants