mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +08:00
Image dataset implemented and ray generation working. (#23)
* working data loader code * adding gitignore * fixing linting errors * set black line length in settings file * update * fixed filepath * black format * tqdm
This commit is contained in:
1 parent
9bc83b0ed2
commit
e38040ee4d
23 files changed
+529
-277
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# image stuff
|
||||
import cv2
|
||||
import imageio
|
||||
import mediapy as media
|
||||
|
||||
# ipython stuff
|
||||
from IPython import get_ipython
|
||||
|
||||
# plotly stuff
|
||||
import plotly.graph_objects as go
|
||||
|
||||
|
||||
def setup_ipynb():
|
||||
"""
|
||||
https://stackoverflow.com/questions/15411967/how-can-i-check-if-code-is-executed-in-the-ipython-notebook
|
||||
https://stackoverflow.com/questions/35595766/matplotlib-line-magic-causes-syntaxerror-in-python-script
|
||||
This gets reference to the InteractiveShell instance
|
||||
"""
|
||||
try:
|
||||
from IPython import get_ipython
|
||||
|
||||
get_ipython().run_line_magic("load_ext", "autoreload")
|
||||
get_ipython().run_line_magic("autoreload", "2")
|
||||
get_ipython().run_line_magic("matplotlib", "inline")
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
||||
|
||||
setup_ipynb()
|
||||
Reference in new issue
Block a user