View hdrihaven_download_hdris.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FIRST do: pip install beautifulsoup4 tqdm requests fake-useragent urllib3 | |
# | |
import requests | |
import os | |
from sys import argv | |
from bs4 import BeautifulSoup | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve | |
from urllib.request import URLopener |
View compile_mistuba.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# go to the dir where you will download the source files | |
cd ... | |
# download the source files | |
git clone https://github.com/mitsuba-renderer/mitsuba | |
# go into the mitsuba folder | |
cd mitsuba | |
# copy the config file to build |
View lz4.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lz4.block | |
import numpy as np | |
__header_sample = { | |
'desc': b'LANT_IMG_CODING\x00', | |
'width': np.array(1024, dtype=np.uint32), # uint32_t | |
'height': np.array(1024, dtype=np.uint32), # uint32_t | |
'row_stride_in_byte': np.array(4096, dtype=np.uint32), # uint32_t | |
'pixel_format': np.array(2, dtype=np.uint32), # pixel_format | |
'color_space': np.array(0, dtype=np.uint32), # color_space |
View ejercicio_corto.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View SGD_comparison.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.