Coder Social home page Coder Social logo

Comments (8)

merlinND avatar merlinND commented on September 27, 2024

Hello @alialsahlany,

  1. 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.
  2. Does it work when trying locally?

from sionna.

alialsahlany avatar alialsahlany commented on September 27, 2024

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.
Capture

from sionna.

merlinND avatar merlinND commented on September 27, 2024

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.

alialsahlany avatar alialsahlany commented on September 27, 2024

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.

merlinND avatar merlinND commented on September 27, 2024

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.

alialsahlany avatar alialsahlany commented on September 27, 2024

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.

errore

from sionna.

alialsahlany avatar alialsahlany commented on September 27, 2024

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.

merlinND avatar merlinND commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.