Comments (8)
Hello @alialsahlany,
- Did you make sure to copy over the full exported scene, including the
.ply
files representing the meshes? If you only copy over the XML file to Colab, the meshes will be missing. - Does it work when trying locally?
from sionna.
Hello @merlinND
Thank you for your help.
I have organized and uploaded the files as shown in the image. However, I still cannot display the scene. Although the scene works fine locally.
from sionna.
Hello @alialsahlany,
I still cannot display the scene
After organizing and uploading the files as shown in the image, do you still encounter the same error as before?
Without knowing precisely what error message or what is being displayed, it is difficult to help.
If you encounter new symptoms, please have a look at this existing discussion about the Preview renderer on Colab: #452
from sionna.
I have looked at #452 discussion about the Preview renderer on Colab but did not get a new result. I still cannot preview the scene.
This is the scene [mecca.rar] used; can you check it?
from sionna.
Hello @alialsahlany,
As I said before, without knowing precisely what error message or what is being displayed, it is difficult to help. Please give a full description of what you are trying, what you are seeing, what is printed to the dev console, etc.
from sionna.
Steps I followed
###################################################
!pip install --upgrade tensorflow
####################################################
!pip install --upgrade mitsuba
#######################################################
!pip install --upgrade drjit
#########################################################
!pip install --upgrade sionna
###############################################################################
#Import necessry functions
import os
from importlib_resources import files
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import time
import drjit as dr
import mitsuba as mi
mi.set_variant('scalar_rgb')
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
print("Current working directory:", os.getcwd())
import tensorflow as tf
import sionna
##########################################################
Import Sionna RT components
from sionna.rt import load_scene, RadioMaterial, Transmitter, Receiver, PlanarArray, Camera
from sionna.channel import cir_to_ofdm_channel, subcarrier_frequencies, OFDMChannel, ApplyOFDMChannel, CIRDataset
from sionna.nr import PUSCHConfig, PUSCHTransmitter, PUSCHReceiver
from sionna.utils import compute_ber, ebnodb2no, PlotBER
from sionna.ofdm import KBestDetector, LinearDetector
from sionna.mimo import StreamManagement
###############################################################################
file_path = "/content/mecca.xml"
if os.path.exists(file_path):
print("File exists.")
else:
print(f"File not found: {file_path}")
################################################################################
scene = sionna.rt.load_scene('/content/mecca.xml')
scene.preview()
###############################################
After executing the last command, the errors appear in the message below.
from sionna.
Many thanks for your help; I found the solution by using the following code:
scene = sionna.rt.load_scene('/content/mecca.xml')
scene.add(Camera("cam-0", position=[50,0,130], look_at=[10,0,0]))
if colab_compat:
scene.render(camera="cam-0", num_samples=256);
center = np.array([0.0, 0.0, 10.206510543823242]) # Replace with the actual center coordinates
scene.preview(look_at=center)
#scene.preview()
from sionna.
Thanks for posting this workaround @alialsahlany.
In principle the instructions in #452 (reply in thread) should also fix the issue, but your version is certainly simpler.
from sionna.
Related Issues (20)
- Are you interested in doing a PyTorch version?
- Error in the code examples in "MIMO OFDM Transmissions over the CDL Channel Model" HOT 2
- Will there be an enhancement to support time evolution of channels?
- Phase rotation is not applied for 5G PUSCH time domain signals HOT 2
- How to save the 'InteractiveDisplay' object as the '.eps' or '.pdf' file? HOT 3
- Discrepency in PUSCH transmit slot lengths when generating multiple contiguous slots and frames HOT 11
- LMMSEInterpolator initialization is very slow with GPU enabled
- Spatial Consistency HOT 2
- Discrepancy in LMMSE Performance Between Time-Domain and Frequency-Domain Channel Implementations HOT 2
- Fail to step into a function HOT 2
- Support of various antenna patterns in one scene HOT 2
- module 'sionna' has no attribute 'config' HOT 1
- Colab: problem loading custom scene using XML from blender HOT 3
- Demapper doesn't work with Tensorflow versions 2.16.0+ HOT 1
- Significant Increase in Scene Loading Time from Sionna 0.16.2 to 0.18 HOT 6
- Dimension discrepancy for 'a' vs 'tau'/'theta_r' in compute_paths() HOT 1
- Is there a function for calculating Path Loss in Sionna? HOT 1
- test_3gpp_channel_cdl.py can not pass unittest HOT 8
- Whether the channel generation result of Sionna is compared with the simulation result of the proposals submitted by each company to 3GPP? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sionna.