Comments (2)
Concerning the image reduction, I believe what is happening is that your dataset is reduced in the function fetch()
in dataset.py
(line 342) because you do not have a GPU running with CUDA:
if not tf.config.list_physical_devices("GPU"):
dataset = [
tf.image.central_crop(tensor, 0.1) for tensor in [x_im, y_im, target_cm]
]
else:
dataset = [x_im, y_im, target_cm]
If you want to avoid this, you can simply replace "0.1" with "1" and the function would behave exactly as if these lines were not there.
Please notice that the same "if" statement affects also the parameter setting in config.py
, so you would have to change line 22 with if not debug:
.
About the images with more channels, the method is supposed to handle any kind of number of channels (except 2, I have to fix it). In config.py
there is a selection of channels to be printed out ("channel_x" and "channel_y") in case there are more than 3. In conclusion, I struggle to understand your question. Can you provide more details about the error, sharing for example what python prints out?
from heterogeneous_cd.
Hi Dr.Luppino,
Thank you very much for your help. It works~
Best regards,
yusin
from heterogeneous_cd.
Related Issues (18)
- about Texas_super_test.mat HOT 1
- About the Code-Aligned_Autoencoders HOT 1
- about the file change-prior.mat HOT 3
- an error in file cGAN.py HOT 2
- FileNotFoundError: [Errno 2] No such file or directory: 'data/Texas/Cross-sensor-Bastrop-data.mat' HOT 1
- What preprocessing did you do to the UiT_HCD_California_2017.matοΌ HOT 2
- Code HOT 3
- About shuguang dataset
- Pytorch version code HOT 1
- Error running X-Net and ACE-Net for Texas dataset HOT 4
- docker HOT 1
- about the final_evaluate() HOT 1
- Texas dataset HOT 2
- the computation of the prior transformation in the Code_Aligned.py. HOT 1
- cGAN.py file in the Code-Aligned_Autoencoders project doesn't work properly HOT 3
- A Issue About change_priors.py HOT 3
- A question about a priori computation in X-Net.py HOT 2
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 heterogeneous_cd.