Comments (6)
The dataloader isn't able to find the training dataset. Either use the directory structure in the Readme or change the dataset_path variable in datasets.py
from raft.
Thanks for answer. I still have some questions: 1.Does the command (./train_mixed.sh) run only when the four datasets all in the directory? If I only have two datasets(such as Sintel and DAVIS), can I train the network? 2. If I want to train another dataset(my private dataset), what should I do? Thanks!!!
from raft.
You can modify the function
Line 199 in d3f3840
to
def fetch_dataloader(args, TRAIN_DS='C+T+K+S+H'):
aug_params = {'crop_size': args.image_size, 'min_scale': -0.2, 'max_scale': 0.6, 'do_flip': True}
sintel_clean = MpiSintel(aug_params, split='training', dstype='clean')
sintel_final = MpiSintel(aug_params, split='training', dstype='final')
train_dataset = sintel_clean + sintel_final
train_loader = data.DataLoader(train_dataset, batch_size=args.batch_size,
pin_memory=False, shuffle=True, num_workers=4, drop_last=True)
print('Training with %d image pairs' % len(train_dataset))
return train_loader
to train only using sintel data. To train on another dataset, you will need to write your own subclass of FlowDataset
from raft.
Thanks again for your answer! I modified the function to train only using Sintel dataset. However, there exists another question during training:
Traceback (most recent call last):
File "train.py", line 247, in
train(args)
File "train.py", line 192, in train
results.update(evaluate.validate_chairs(model.module))
File "/data/zzl/anaconda3/envs/raft/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
return func(*args, **kwargs)
File "/data/zzl/PycharmProjects/RAFT/evaluate.py", line 90, in validate_chairs
epe = np.mean(np.concatenate(epe_list))
File "<array_function internals>", line 5, in concatenate
ValueError: need at least one array to concatenate
what should I do to address it? thanks a lot!
from raft.
In the training command, you need to change the flag to specify the validation dataset, from --validation chairs
to --validation sintel
from raft.
Thanks again for your answer! If I want to save all the output flow images in a directory (just flow images, not an original frame on the top and a flow image on the below in the output of demo.py), what should I do? thanks a lot!
from raft.
Related Issues (20)
- Google authenticator installation
- SmartVectors / stmaps
- load image problem
- RuntimeError: GET was unable to find an engine to execute this computation HOT 2
- Raft Optical Flow does not look correct HOT 1
- How to finetune pretrained mdoel on custom dataset to predict relative transformation of poses?
- wget doesn't work for me HOT 2
- Flow initialization question
- CUDA 11 support for RTX 3080/3090
- IndexError: list index out of range
- ModuleNotFoundError: No module named 'utils.utils' HOT 2
- Relationship between Real Image size and Crop Size parameter?
- `augmentor.resize_sparse_flow_map` does not work for non-sparse flow-maps
- can not create environment
- Error when running on 2 GPUs
- RuntimeError: CUDA out of memory HOT 3
- How to train my own dataset HOT 5
- How to calc optical flow score
- About Applications
- which is better ? raft or deepflow/dis ?
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 raft.