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
from tflite_support import flatbuffers | |
from tflite_support import metadata as _metadata | |
from tflite_support import metadata_schema_py_generated as _metadata_fb | |
# Creates model info. | |
model_meta = _metadata_fb.ModelMetadataT() | |
model_meta.name = "Enhanced Super Resolution GAN for super resolution." | |
model_meta.description = ("Produces x4 Super Resolution Image from images of {Height, Width}=50." | |
"Works best on Bicubically downsampled images.") | |
model_meta.version = "v1" |
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
#include <bits/stdc++.h> | |
#include <armadillo> | |
/** | |
* @brief Code heavily inspired from Pagmo. All credits to Dario Izzo. | |
*/ | |
double archiveSize = 10; | |
// Possibly make it a inner class??? | |
template<typename MatType> |
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
#include <bits/stdc++.h> | |
#include <armadillo> | |
template<typename MatType, | |
typename... ArbitraryFunctionType, | |
typename... CallbackTypes> | |
typename MatType::elem_type SPEA2::Optimize( | |
std::tuple<ArbitraryFunctionType...>& objectives, | |
MatType& iterate, | |
CallbackTypes&&... callbacks) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 numpy as np | |
from numpy import pi | |
from poliastro.core.hyper import hyp2f1b | |
from poliastro.core.stumpff import c2, c3 | |
from poliastro.core.util import cross, norm | |
from ._jit import jit | |
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 numpy as np | |
from numpy import cross, pi | |
from numpy.linalg import norm | |
from poliastro.core.hyper import hyp2f1b | |
from poliastro.core.stumpff import c2, c3 | |
from ._jit import jit | |
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
from poliastro.iod.vallado import lambert as vallado | |
from astropy import units as u, constants as c | |
if __name__ == "__main__": | |
k = (c.GM_earth.to(u.km ** 3/ u.s ** 2)) | |
r0 = [10000., 0, 0] * u.km | |
rf = [8000., -5000, 0] * u.km | |
tof = 2 * u.hour | |
numiter = 10**3 |
NewerOlder