Free-Editor allows you to edit your 3D scenes by editing only a single view of that scene. The editing is training-free and can be done in a matter of 3 minutes! instead of 70 minutes! in SOTA.
Welcome to watch ? this repository for the latest updates.
✅ [2023.12.21] : We have released our paper, Free-Editor on arXiv.
✅ [2023.12.18] : Release project page.
Do the Following-
conda create --name nerfstudio -y python=3.9
conda activate nerfstudio
python -m pip install --upgrade pip
pip uninstall torch torchvision functorch tinycudann
conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit
pip install torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
git clone https://github.com/DiffSK/configobj.git
cd configobj
python setup.py install
pip install nerfstudio
git clone https://github.com/nerfstudio-project/nerfstudio.git
cd nerfstudio
pip install --upgrade pip setuptools
pip install -e .
ns-download-data nerfstudio --capture-name=poster
ns-train nerfacto --data data/nerfstudio/poster
If you start seeing on your linux terminal that it started training, then it means everything is good to go!
There maybe additional dependencies you have to install as well.
To download other datasets, please visit this link - https://huggingface.co/datasets/yangtaointernship/RealEstate10K-subset/tree/main
Here, "synthetic_scenes.zip" is the deepvoxels data.
"nerf_synthetic" and blender dataset possibly the same dataset.
"frames.zip" is the extracted frames for 200 scenes of RealEstate10K dataset. "train.zip" is the camera files.
For Shiny Dataset, go to - https://nex-mpi.github.io/
For Spaces Dataset,
git clone https://github.com/augmentedperception/spaces_dataset
conda deactivate
conda create --name nerfbase
conda activate nerfbase
pip install nerfbaselines
Download Sample Datasets. For Example,
Downloads the garden scene to the cache folder.
mdkir data
cd data
mkdir nerf_dataset
cd nerf_dataset
nerfbaselines download-dataset external://mipnerf360/garden
nerfbaselines download-dataset external://nerfstudio
nerfbaselines download-dataset external://mipnerf360/kitchen -o kitchen
git clone https://huggingface.co/Salesforce/blip2-opt-2.7b
If you want to use a smaller version, use this
from transformers import BlipProcessor, BlipForConditionalGeneration
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base")
git clone https://huggingface.co/stabilityai/stable-diffusion-3-medium
huggingface-cli login
python src/fedit/dataset_creation.py
python train.py
This work is built on many amazing research works and open-source projects, thanks a lot to all the authors for sharing!
If you find our paper and code useful in your research, please consider giving a star and a citation .
@misc{karim2023freeeditor,
title={Free-Editor: Zero-shot Text-driven 3D Scene Editing},
author={Nazmul Karim and Umar Khalid and Hasan Iqbal and Jing Hua and Chen Chen},
year={2023},
eprint={2312.13663},
archivePrefix={arXiv},
primaryClass={cs.CV}
}